1

When I do a dig on a hostname, in our network, it doesn't not give me the IP address, but when I add the domain name it does work or when I do a dig +search

Why is the domain name a prerequisite for DIG to resolve the hostname to IP?

1 Answer 1

1

Because dig is working as designed.

snip from man page:
+[no]search Use or do not use the search list defined by the search list or domain directive in the /etc/resolv.conf file (if any). The search list is not used by default.

In short, do not confuse dig with nslookup

1
  • I know it woks differently, but why is a domain even important for solution, can you explain that part to me? Commented Nov 24, 2016 at 22:15

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.