DNS questions

asid777
Posts: 7
Joined: Wed Dec 23, 2009 5:31 pm

DNS questions

Postby asid777 » Fri Dec 25, 2009 11:25 am

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" ?

kdoswald
Posts: 12
Joined: Fri Nov 13, 2009 12:19 pm
Contact:

Re: DNS questions

Postby kdoswald » Fri Dec 25, 2009 11:52 am

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

User avatar
cpg
Administrator
Posts: 2618
Joined: Wed Dec 03, 2008 7:40 am
Contact:

Re: DNS questions

Postby cpg » Fri Dec 25, 2009 6:34 pm

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.
My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 8GB RAM, 1TBx2+3TBx1

asid777
Posts: 7
Joined: Wed Dec 23, 2009 5:31 pm

Re: DNS questions

Postby asid777 » Sat Dec 26, 2009 2:13 pm

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

User avatar
cpg
Administrator
Posts: 2618
Joined: Wed Dec 03, 2008 7:40 am
Contact:

Re: DNS questions

Postby cpg » Sun Dec 27, 2009 2:28 am

yes, Amahi uses opendns as the default dns provider. you can change it with a script called

Code: Select all

hda-change-dns
My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 8GB RAM, 1TBx2+3TBx1

Who is online

Users browsing this forum: No registered users and 53 guests