DNS
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

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 October 22nd, 2001, 09:49 AM
danp danp is offline
Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2001
Location: Sheffield, UK
Posts: 28 danp User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Setting up subnets

Hi there, this is an extention of a topic I posted in the Apache forum but got asked to move it here. I have several virtual hosts set up, all of them working fine. My main domain is www.actconsult.net with several subnets pointing to out IIS server (intranet. demo. and test.) These all work fine.
I also want to set up some subnets that actually reside on the server and have thus set up virtual a host for sql.actconsult.net.
Code:
<VirtualHost 213.205.145.246>
	ServerAdmin webmaster@actconsult.co.uk
	DocumentRoot /home/sites/sql/web
	ServerName sql.actconsult.net
	ScriptAlias /cgi-bin/ /home/sites/sql/cgi-bin/
	ErrorLog /home/sites/sql/logs/error.log
	CustomLog /home/sites/sql/logs/access.log combined
</VirtualHost>

I was unable to find any documentation to help me so first I set up a new zone - obviously that's wrong.

I have now have this in the nameD file for actconsult.net:
Code:
$ORIGIN net.
actconsult	43200	IN	SOA	dns1.actconsult.net. hostmaster.actconsult.net. (
		2001102202 3600 900 1209600 43200 )
	43200	IN	NS	dns1.actconsult.net.
	43200	IN	NS	dns2.actconsult.net.
	43200	IN	MX	5 mx1.actconsult.net.
	43200	IN	MX	10 mx2.actconsult.net.
$ORIGIN actconsult.net.
ns1	43200	IN	A	213.205.145.246
dns1	43200	IN	A	213.205.145.246
ns2	43200	IN	A	213.205.145.242
dns2	43200	IN	A	213.205.145.242
ftp	43200	IN	A	213.205.145.246
msg	43200	IN	A	213.205.145.242
mx1	43200	IN	A	213.205.145.242
mx2	43200	IN	A	213.205.145.246
www	43200	IN	A	213.205.145.246
sql	43200	IN	A 	213.205.145.246	
test	43200	IN	A	213.205.145.242
demo	43200	IN	A	213.205.145.242
intranet	43200	IN	A	213.205.145.242
@	43200	IN	A	213.205.145.246

This all works fine except for the sql.actconsult.net bit.

Hope you can help.

Reply With Quote
  #2  
Old October 22nd, 2001, 09:19 PM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
A DNS lookup of sql.actconsult.net resolves to 213.205.134.246 instead of 213.205.145.246.

Change the order of your A records to:

ns1
ns2
mx1
mx2
...
...

They need higher preference than others.

Reply With Quote
  #3  
Old October 26th, 2001, 04:40 AM
WuzWuz WuzWuz is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2000
Location: Heerlen, The Netherlands
Posts: 24 WuzWuz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to WuzWuz
Re: Setting up subnets

Quote:
Originally posted by danp
[snip]
Code:
$ORIGIN actconsult.net.
ns1	43200	IN	A	213.205.145.246
dns1	43200	IN	A	213.205.145.246
ns2	43200	IN	A	213.205.145.242
dns2	43200	IN	A	213.205.145.242
ftp	43200	IN	A	213.205.145.246
msg	43200	IN	A	213.205.145.242
mx1	43200	IN	A	213.205.145.242
mx2	43200	IN	A	213.205.145.246
www	43200	IN	A	213.205.145.246
sql	43200	IN	A 	213.205.145.246	
test	43200	IN	A	213.205.145.242
demo	43200	IN	A	213.205.145.242
intranet	43200	IN	A	213.205.145.242
@	43200	IN	A	213.205.145.246

This all works fine except for the sql.actconsult.net bit.

Hope you can help.


You should not use A records for canonicals, but CNAMEs.

Code:
ns1 IN A IP-address
www IN CNAME ns1
sql IN CNAME ns1

Reply With Quote
  #4  
Old October 26th, 2001, 04:59 AM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
>> You should not use A records for canonicals, but CNAMEs

There no longer is such thing as CNAME one earth. Don't use CNAME, just multiple A records to do the same thing at all time.
CNAME lookup is unreliable and require more bandwith and resource. To lookup a CNAME, you must first lookup the A record of associates FQDN. That's a waste of resource.
When you are running your own mail server + authoratative DNS server yourself, using CNAME is strongly discouraged.

Reply With Quote
  #5  
Old October 26th, 2001, 05:25 AM
danp danp is offline
Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2001
Location: Sheffield, UK
Posts: 28 danp User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thanks guys, it was actually correctly configured. Somehow the name demon got switched off and then our DNS2 had incorrect information about the SQL subnet.

I'm slowly getting used to Linux configuration. Cheers!

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationDNS > Setting up subnets

Developer Shed Advertisers and Affiliates



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 | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap