Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Route add -host

Status
Not open for further replies.

optimised

Technical User
Jun 21, 2001
96
US
Hello,

Should your primary nameserver have the same IP address as the domain it is using:

Say domain is test.com should ns.testing.com have the same IP address as test.com since it is the primary DNS server?

The reason for the question is I am able to ping my ip address and my ns1.test.com fine. But ping test.com fails.

I was thinking that I am able to ping my ns1.test.com because ns1.test.com has my nameserver ip and is the only hosts in my host file besides localhost.

Because I only have one ip address the hosts file will not allow the same ip for different host.

Some one told me to try to bind my domain through eth0.

Don't know if this will resolve the problem with not being able to ping test.com successfully.

Is 'route add -host x.x.x.x eth0' the correct command?


 
add an A record pointing ->

test.com IN A ip address(NS/web?)

and a reverse

12 In PTR ns.test.com

And your domain name will resolve.
remember that name resolution depends
on the db side of your domain first
(zone files), then you can tshoot other
problems, like routing, services, etc..

You can designate any accessible host address
as your domain address-it doesn't matter-
don't get caught up in rules!!;-)
 
as long as that host address is yours and
is already defined..clarification to the
above..

MMD
 
HI Opti,
I am confuse here.
you have domain test.com
you have a system ns1.test.com

You can only ping ns1.test.com you can't ping domain.
Systems are part of domain. Domain is just name not a physical system.

If you add another system ns2 in to this domain then it would become ns2.test.com

for example you can ping yahoo.com not com

Patel
 
Hi,

The answer is no. The way dns works is right to left. The definite nameserver for .com is 198.41.0.4 aka A.ROOT-SERVERS.NET . That nameserver must be able to either resolve or find a 'next-hop' nameserver for all the .com domains - e.g. yahoo.com, cnn.com. This is just an IP address / canonical name. The people who run, for example, the cnn.com domain might subdivide it into other domains, e.g. europe.cnn.com, asia.cnn.com and the cnn.com dns server would just provide another ip pointer to those dns servers, etc, etc.

So, when your ISP dns server doesn't have anything in its cache for it goes to the root server for .com, finds the authoritive server for yourdomain.com and then queries that server. It could be anywhere.

As marsd says, it is perfectly possible to set a 'A' record for the domain itself. For example, try doing (i.e. without the
You can use the 'listen-on' directive to control which ports and, optionally, ip addresses that bind will listen to. Have you got the bind 9 admin manual ? Its available as a pdf from here --> .

'Route add -host x.x.x.x eth0' would just add an entry in the routing table for a specific ip address as being accessable via the eth0 interface. Thats quite different.

Rgds
 
Hi ifincham,
Thank you for being so polite and helpful first of all. I have attached my dns cofig files to the thread 29 created by trialmen.
Would you take a look and see if I'm missing something elsewhere.
Seems that when I try to add some things to my current zone file for ex: IN A 206.x.x.x
Check the log and I would get ignoring out of zone data.
The zone file I have currently set up runs with no errors.

Thanks in advance...
 
So I am back to square one..
Re-installed and got the same problem insanity at it's
finest I guess doing the same thing and expecting different results.

Here are my files I can't find any info on what I'm doing or not doing. This seems like it would be pretty straight forward to set up for one domain, but apparently it's not..

machine hostname = ns1.myhostman.com
server name = ns1.myhostman.com
my registered beta domain name my ns1.myhostman.com ip =206.107.69.66
my ns2.myhostman.com ip =206.107.69.67
I am using named vhosting but I think it's a dns problem
dig @127.0.0.1 = fine
dig @127.0.0.1 myhostman.com = serverfail
dig or myhostman.com= serverfail
ping ip and ns1 fine
ping domain fails

//Host file
127.0.0.1 localhost.localdomain localhost
206.107.69.66 ns1.myhostman.com myhostman

//my zone file
$TTL 86400
@ IN SOA ns1.myhostman.com. hostmaster.myhostman.com. (
20010814; Serial
12H ; Refresh
1H ; Retry
2W ; Expire
1D ) ; Minimum
IN NS ns1.myhostman.com.
IN NS ns2.myhostman.com.
A 206.107.69.66
ftp IN A 206.107.69.66
A 206.107.69.67
mail IN A 206.107.69.67
IN MX 5 mail.myhostman.com.

//resolve.conf
search mydomain.com
nameserver ip of isp's nameserver

btw-I have servers off right now until
I resolve this problem.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top