Forum
  • Search
  • Member List
  • Calendar
Hello There, Guest! Login Register — Login with Facebook

[SOLVED] Pi no longer responds to Hostname
Thank you for your donation

Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode | Linear Mode
Solved: Pi no longer responds to Hostname
20th Jun, 2015, 11:55 PM (This post was last modified: 21st Jun, 2015 12:12 AM by deHakkelaar.)
Post: #2
deHakkelaar Offline
Administrator
******
Posts: 360
Joined: Dec 2012
Reputation: 23
RE: Pi no longer responds to Hostname
Your making a mistake with running "nslookup hostname".
By running "nslookup hostname", your asking the DNS server to resolve a non existing hostname called "hostname".

Syntax is:

Terminal
nslookup <HOSTNAME_THAT_YOU_WANT_TO_RESOLVE_TO_AN_IP_ADDRESS> <DNS_SERVER_IP_ADDRESS>

Looking at the response from nslookup that you posted before, it looks like the IP address for your DNS server is "1.1.1.1" but you can check by running below one:

Terminal
cat /etc/resolv.conf

So for example for the default hostname for XBian:

Terminal
nslookup xbian 1.1.1.1

Or lookup IP address for the forum:

Terminal
$ nslookup forum.xbian.org 1.1.1.1
Server: 1.1.1.1
Address 1: 1.1.1.1
Name: forum.xbian.org
Address 1: 77.235.33.28 web2.sd.eurovps.com

If you want to use DNS for resolving hostnames to IP addresses , you will need to configure your DNS server with A-records for all your hosts.
Or if you got a smart router/DHCP/DNS box, these will add DNS records automaticly upon DHCP renewal.

Alternativly if you dont want to use a DNS server but still want to resolve, you can edit the "/etc/hosts" file on every device and add lines for resolving names to IP (see 'localhost' entry as an example).
Ps. Windows location for the "hosts" file is "C:\windows\system32\drivers\etc\hosts".

There are only 10 types of people in the world: those who understand binary, and those who don't
Find all posts by this user
Quote this message in a reply
« Next Oldest | Next Newest »
Post Reply 


Messages In This Thread
Pi no longer responds to Hostname - palswim - 20th Jun, 2015, 02:41 PM
RE: Pi no longer responds to Hostname - deHakkelaar - 20th Jun, 2015 11:55 PM
RE: Pi no longer responds to Hostname - palswim - 21st Jun, 2015, 08:53 AM
RE: Pi no longer responds to Hostname - deHakkelaar - 22nd Jun, 2015, 01:51 AM
RE: Pi no longer responds to Hostname - palswim - 28th Jul, 2015, 08:01 AM
RE: Pi no longer responds to Hostname - palswim - 30th Nov, 2016, 08:11 AM
RE: Pi no longer responds to Hostname - f1vefour - 9th Jan, 2017, 06:10 AM
RE: Pi no longer responds to Hostname - deHakkelaar - 9th Jan, 2017, 08:12 AM
RE: Pi no longer responds to Hostname - IriDium - 27th Jan, 2017, 04:59 AM

  • View a Printable Version
  • Send this Thread to a Friend
  • Subscribe to this thread
Forum Jump:

Current time: 21st May, 2025, 07:47 PM Powered By MyBB, © 2002-2025 MyBB Group.