nslookup can't find server

My Linux host name is Jenkins, but why it can't find it?

admin@Jenkins:~$ nslookup Jenkins
Server: 8.8.8.8
Address: 8.8.8.8#53
** server can't find Jenkins: NXDOMAIN

I googled and found 8.8.8.8. is Google DNS server. How can I configure it to use as my DNS server? I am using Ubuntu.

3

2 Answers

Odds are that your host is in your home.

If is your home network, then your router which is most likely provided by your ISP, you can add your hostname to that router dns server.

Try browsing to 192.168.1.1 and browse for DNS and add it there.

You said that you have your own DNS, then go to network settings on Ubuntu and switch interface from DHCP to manual and set IP,mask,gateway and DNS that know about your host (FQDN <-> IP)

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like