The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.
|
 |
|
Dev Shed Forums
> System Administration
> DNS
|
Single Domain on multiple IPs
Discuss Single Domain on multiple IPs in the DNS forum on Dev Shed. Single Domain on multiple IPs DNS forum discussing issues, servers, and configurations. The Domain Name System (DNS) is what the Internet uses to translate website names into IP addresses.
|
|
 |
|
|
|
|

Dev Shed Forums Sponsor:
|
|
|

August 26th, 2002, 07:04 PM
|
|
Junior Member
|
|
Join Date: Dec 2001
Posts: 14
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
Single Domain on multiple IPs
Sorry for the duplicate posts but some reason it didn't post what I wrote. Anyway, here it goes again.
I have SWBell DSL and got 5 static IPs from them. I set up DNS to run on one IP, and configured the other four IPs to be the other four Name Server in the above config file. All the NS are registered, and can be nslook-ed up. But when I ping the other 4 NS, no goes. So I am thinking maybe I need 4 different NIC Cards in one single machine? Can someone confirm this?
Thanks!
|

August 28th, 2002, 04:07 AM
|
|
Contributing User
|
|
Join Date: Jan 2001
Posts: 5
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
I'm not sure if I understand your questions.
1) DNS has nothing to do with ifconfig
2) Creating NIC alias as well has nothing to do with DNS
3) ping is not a tool to troubleshoot DNS problem
>> I am thinking maybe I need 4 different NIC Cards in one single machine?
To reduce collision of course it's better off to use separate cards. Sometime you get assigned with 5 static IPs you don't have to use them all. Maybe you should build 4 additional boxes and assign a static IP per box.
|

August 28th, 2002, 09:35 AM
|
|
Junior Member
|
|
Join Date: Dec 2001
Posts: 14
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
What I mean is that I configured everything alright. I registered my name servers as ns1, ns2, ns3, ns4, ns5 and each has different IP with the registar godaddy.com. Right now my DNS as follow:
ns1.mydomain.com IN A 1.2.3.4
ns2.mydomain.com IN A 1.2.3.5
ns3.mydomain.com IN A 1.2.3.6
ns4.mydomain.com IN A 1.2.3.7
ns5.mydomain.com IN A 1.2.3.8
The eth0 has the 1.2.3.4 IP, when I try http://ns1.mydomain.com and it works, but not with http://ns2.mydomain.com and it doesn't work, so as the others. How do I configure DNS to point all the IPs above to the 1.2.3.4 IP?
Thanks!
|

August 28th, 2002, 10:07 AM
|
|
Contributing User
|
|
Join Date: Jan 2001
Posts: 5
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
Quote: | How do I configure DNS to point all the IPs above to the 1.2.3.4 IP? |
I don't get it. What do you mean when you say to point an IP to another IP?
Let's forget about the FQDN assignment, can you ping all of them via IP only? Can other from a remote location ping all 5 IPs? If you can't, then it's not a DNS problem but rather a network configuration problem on how to go about creating NIC alias.
|

August 28th, 2002, 10:31 AM
|
|
Junior Member
|
|
Join Date: Dec 2001
Posts: 14
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
ehhehe...sorry for the real confusion. Anyway, I guess you got me right. I have ONLY 1 Nic card right now with IP 1.2.3.4 and how do I create *fake* NIC aliases that I can really assign a real IP to it.
Thanks!
|

August 28th, 2002, 05:12 PM
|
|
Contributing User
|
|
Join Date: Jan 2001
Posts: 5
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
You need to run ifconfig to add that but I'm sure there is a easier way for your unknown OS to configure this in a boot script so it's done automatically on reboot. Whatever OS that is, you should read the network configuration section of the howto.
|

September 1st, 2002, 03:10 AM
|
|
Contributing User
|
|
Join Date: Nov 2000
Location: San Jose, CA
Posts: 58
Time spent in forums: 1 h 14 m 9 sec
Reputation Power: 13
|
|
|
Suggestion
FreeBsd was right when he said that you don't need to use all of your ip's. The reason why you would have more than one DNS server is for ackup purposes only, however if you insist on haveing a DNS server that can be contacted by 5 diff ip's her is a tip.
You do not need to have 5 nics (although it would be nice).
add a virtual interface by typeing somthing like this.
#ifconfig eth0:1 1.2.3.2 submask 255.255.255.0
#ifconfig eth0:2 1.2.3.3 submask 255.255.255.0
#ifconfig eth0:3 1.2.3.4 submask 255.255.255.0
#ifconfig eth0:4 1.2.3.5 submask 255.255.255.0
You will also need to ad a route in your routing table for these ip's
#route add 1.2.3.2 dev eth0:1
and so on...
Hope this helps.... 
|
Developer Shed Advertisers and Affiliates
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Rate This Thread |
Linear Mode
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|