0

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
  • because you are looking up an internal host with external dns server?
    – Bilo
    Jul 24, 2015 at 5:34
  • It looks like. I am not even aware of the 8.8.8.8 server. How to resolve my IP to the host name Jenkins?
    – martin
    Jul 24, 2015 at 5:50
  • You should set your Linux PC DNS server point to your router (assume you have one)
    – Bilo
    Jul 24, 2015 at 6:28

2 Answers 2

0

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.

0

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

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.