Page 1 of 1

DNS questions

Posted: Fri Dec 25, 2009 11:25 am
by asid777
Hello

I just got Amahi HDA 5.0 working with fedora12.

Question 1: How do I setup a dns entry for gateway/router ? so that I can access it via http://gateway instead of 192.168.x.x

Question 2: when I do a nslookup for something that does not exist... I get the following:

--------------------
C:\nslookup test
Server: h010.mydev.com
Address: 192.168.1.11

Name: test.mydev.com
--------------

(a) Why am I getting server=h010 ? instead of hda or hda5 (which is the hostname I gave the server)?

(b) it shows the name I wanted to look up with my local domain, but then does not give any message like "does-not exist" ?

Re: DNS questions

Posted: Fri Dec 25, 2009 11:52 am
by kdoswald
Go into Setup - Networking - Static IP's you can set a static IP in their for you're router.

NSlookup works for me no problem.

From my ubuntu system-
---
nslookup test.com
Server: 192.168.1.45
Address: 192.168.1.45#53

Non-authoritative answer:
Name: test.com
Address: 204.12.0.50
------
From Windows XP
----
nslookup test.com
Server: 192.168.1.45
Address: 192.168.1.45#53

Non-authoritative answer:
Name: test.com
Address: 204.12.0.50

Re: DNS questions

Posted: Fri Dec 25, 2009 6:34 pm
by cpg
Hello

I just got Amahi HDA 5.0 working with fedora12.

Question 1: How do I setup a dns entry for gateway/router ? so that I can access it via http://gateway instead of 192.168.x.x
It's actually set up automatically for you as http://router out of the box. you can also set up an alias.

to set up an alias,

- turn on advanced settings under setup -> settings
- go to setup -> networking -> aliases (router should be there)
Question 2: when I do a nslookup for something that does not exist... I get the following:

--------------------
C:\nslookup test
Server: h010.mydev.com
Address: 192.168.1.11

Name: test.mydev.com
--------------

(a) Why am I getting server=h010 ? instead of hda or hda5 (which is the hostname I gave the server)?
it's the nominal name for IPs in your subnet. from h001 to h254 they are all defined (they do not need to exist). no need to type ip addresses any more!
(b) it shows the name I wanted to look up with my local domain, but then does not give any message like "does-not exist" ?
looking up dns does not check for existance. just the name. if you try to ping something that is not there, then you are checking for it being available.

Re: DNS questions

Posted: Sat Dec 26, 2009 2:13 pm
by asid777
Thanks for the replies.

Indeed router is setup for the gateway.

Regarding the question on not returning an error. I was reffering to the fact that its not setup in DNS. I know that a machine can exist without being in DNS or a machine can be in DNS but not live on the network. Normally, when you do a nslookup for a machine (host) ex. nodnsname.test.com you would get an error message - saying host or domain does not exist.

While I was doing a test... I discovered something else thats strange:

lookup any host that is not valid out there on the internet and I always gets me the same ip... that resolves to an opendns server.

see below:

C:\>nslookup doesnotexist.test.com
Server: h011.mydev.com
Address: 192.168.1.11

Non-authoritative answer:
Name: doesnotexist.test.com
Address: 208.67.219.132


C:\Users\Ali>nslookup 208.67.219.132
Server: h011.mydev.com
Address: 192.168.1.11

Name: hit-nxdomain.opendns.com
Address: 208.67.219.132

Re: DNS questions

Posted: Sun Dec 27, 2009 2:28 am
by cpg
yes, Amahi uses opendns as the default dns provider. you can change it with a script called

Code: Select all

hda-change-dns