What's new

how-to nslookup hostname to append domain

Is this what you mean?
Code:
C:\Users\Colin>nslookup zen
Server:  router.asus.com
Address:  192.168.1.1

Name:    zen.home.lan
Address:  192.168.1.238
 
that is interesting .. i have to append a '.' to get a result ..

C:\Users\walter>nslookup PC0CUGP9
Server: router.asus.com
Address: 192.168.1.1
*** router.asus.com can't find PC0CUGP9: Non-existent domain

----------------------

C:\Users\walter>nslookup PC0CUGP9.
Server: router.asus.com
Address: 192.168.1.1

Name: PC0CUGP9
Address: 192.168.1.5
 
That's usually because the "Connection-specific DNS Suffix" for the network adaptor is not set.

EDIT: Or your router doesn't have a domain name set in its configuration. So the domain suffix is in fact a null string, "".
 
Last edited:
I ran set debug on my hostname PC0CUGP9 (windows 7 dhcp client) ..

PC0CUGP9.Org.companyname.local
router.asus.com can't find PC0CUGP9: Non-existent domain

Also forgot to mention that this is my company laptop that is on the domain at work but I use it at home on my network Looks like it is appending the Org.companyname.local domain to my nslookup ...

going to put my home box on dhcp and see if I get a different result...
 
after putting the MacBook on dhcp it is appending the domain now when doing nslookup hostname

for example: nslookup macbook1 -> macbook1.private.net

..my work pc on my dhcp network ..will not append the domain due to the company adding the machine to its own domain ..
 
nslookup m1 on my macbook terminal.. it still not appending the domain.. results below -

Flush the cache on the Macbook when making changes...

sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder
 

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!

Members online

Back
Top