DNS
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationDNS

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old July 20th, 2004, 12:00 PM
xorprime xorprime is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Posts: 2 xorprime User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Linux config affecting DNS

Versions:
OS = Redhat 9.0
DNS = BIND 9

Config files
1./etc/sysconfig/network
NETWORKING=yes
GATEWAY=227.126.27.169
HOSTNAME=linux.xi.com /* should this be ns1.xi.com? */

2. /etc/sysconfig/networking/devices/ifcfg-eth0
DEVICE=eth0
ONBOOT=yes
BOOTPROTO=static
IPADDR=227.126.27.170
NETMASK=255.255.255.248
GATEWAY=227.126.27.169

3. /etc/hosts
127.0.0.1 localhost.localdomain localhost
227.126.27.170 linux.xi.com linux /*should this be ns1.xi.com and should I add 227.126.27.171 for ns2.xi.com */

IFCONFIG
eth0 inet addr:227.126.27.170 Bcast:227.126.27.175 Mask:255.255.255.248

eth0:0 inet addr:227.126.27.171 Bcast:227.126.27.175 Mask:255.255.255.248

I already setup bind(9.0) in linux (Redhat 9.0) and configured according to the very useful sticky in this forum. Now I have the following clarifications:

I am setting up a virtual hosting, I host several .COMs in a single linux machine. By following the sticky on linux, is this only applicable to the primary domain name assigned to the machine? i already created a host in my registrar(stargateinc.com) for xi.com , ns1.xi.com and ns2.xi.com pointing to the IP of my machine (eth0 and eth0:0).

a. what will me my hostname? is its has to be ns1.xi.com or i can use other value?

b. what would be included in the /etc/hosts file? should it be
227.126.27.170 ns1.xi.com ns1
227.126.27.171 ns2.xi.com ns2

c. if i will add a new domain name, do i need to replicate the zone file of the xi.com or there is a different entries in thezone file. example: newdomain.com (ns1.xi.com and ns2.xi.com), newdomain2.com (ns1.xi.com and ns2.xi.com) what will be the entries in the zone file and the named.conf for this matter


Thank you so much

xorprime

Reply With Quote
  #2  
Old July 20th, 2004, 10:49 PM
SilentRage's Avatar
SilentRage SilentRage is offline
DNS/BIND Guru
Dev Shed Specialist (4000 - 4499 posts)
 
Join Date: Jun 2003
Location: OH, USA
Posts: 4,195 SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Week 5 Days 15 h 53 m 4 sec
Reputation Power: 77
1./etc/sysconfig/network
Doesn't matter what HOSTNAME is set to. It is not used by BIND. On my system I set HOSTNAME to my root domain.

3. /etc/hosts
I don't see any reason why you should map IPs to domains in this file. That should be handled by the BIND server with the exception of the loopback entry.

"is this only applicable to the primary domain name assigned to the machine?"

Doesn't matter what's assigned to the machine.

"i already created a host in my registrar(stargateinc.com) for xi.com , ns1.xi.com and ns2.xi.com pointing to the IP of my machine (eth0 and eth0:0)."

Delete the xi.com host entry. It's always bothered me when people do this. It's contrary to what the system was designed for.

"a. what will me my hostname? is its has to be ns1.xi.com or i can use other value?"

Use any value you want. If I were to recommend something, it would be either the root domain or the mail server domain since in my experience mail server's use the hostname as a default configuration value.

"b. what would be included in the /etc/hosts file?"

Don't include anything in the hosts file except loopback. Centralize domain management with BIND.

"c. yadda named.conf yadda xi.com zone yadda..."

uh, manage all your domain resolution in the zone file that is loaded by the named.conf.
__________________
Send me a private message if you would like me to setup your DNS for you for a price of your choosing. This is the preferred method if your DNS needs to be fixed/setup fast and you don't have the time to bounce messages back and forth on a forum. Also, check out these links:

Whois Direct | DNS Crawler | NS Trace | Compare Free DNS Hosts

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationDNS > Linux config affecting DNS


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway
Stay green...Green IT