LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-23-2004, 10:43 PM   #1
snipersock
LQ Newbie
 
Registered: Nov 2003
Location: Usa. California, Orange
Distribution: Fedora Core 2
Posts: 22

Rep: Reputation: 15
Question DNS configuration with bind


Hey folks,

I've recently switched from shared hosting for my website to dedicated hosting. Its kinda a big step and i'm quite excited about it. I have a pimary domain, burningwind.com, up and going through godaddy. I've gone through godaddy and changed the host setup to register my dns hosts, ns1.burningwind.com and ns2.burningwind.com, to use the ip addresses assigned to me by my hosting provider. A whois on burningwind.com shows that it has recognized the configuration change and is ready to go.

On the server side I'musing bind 9 and have the following configuration for the master zone setup of burningwind.com:
Code:
$ttl 38400
burningwind.com.	IN	SOA	burningwind.com. nick.localhost. (
			1093131742
			10800
			3600
			604800
			38400 )
burningwind.com.	IN	A	198.87.87.24
ns1.burningwind.com.	IN	A	198.87.87.168
ns2.burningwind.com.	IN	A	198.87.87.169
mail.burningwind.com.	IN	A	198.87.87.24
ns1.burningwind.com.	IN	NS	198.87.87.168
ns2.burningwind.com.	IN	NS	198.87.87.169
mail.burningwind.com.	IN	MX	1 mail.burningwind.com
Its been several days and the domain still doesn't resolve. Can anyone see anything obviously wrong with my configuration? I also have a second domain that I would like to setup as well, but I'd like to get this resolved before I venture deeper. Any help or advise would be greatly appreciated.

~ Nick (snipersock@gmail.com)
 
Old 08-23-2004, 10:46 PM   #2
snipersock
LQ Newbie
 
Registered: Nov 2003
Location: Usa. California, Orange
Distribution: Fedora Core 2
Posts: 22

Original Poster
Rep: Reputation: 15
A few side notes

A few notes to keep in mind.

My host provides me up to 5 ip addresses. The primary, .24, is the main ip of the machine. The other two, .168 and .169, are just pointers for the dns. While looking at this remember that all of this is taking place on the same machine. Sooner or later i'll have real secondary name servers, but for now its not critical to have the loss of uptime in case something happens.

Sooner or later I'll be putting up another domain, socklabs.com. When I go to configure that should I just use the burningwind.com nameserver pointers or setup an entire new zone for it?

~ Nick (snipersock@gmail.com)
 
Old 08-23-2004, 11:14 PM   #3
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 69
There's no IN NS record for the root domain. When you created ns1.... IN NS what you're doing is saying "for the sub-domain ns1..., it's DNS server is ..."

You need to remove the ns1. and ns2. from in front of burningwind.com. and change the values from the IP address of the name server to the actual name. i.e. you need to switch the ns1... and ns2... to the right side of IN NS and have only burningwind.com. on the left side. Typically NS records are first in a zone file and as such you don't even need to put anything on the left side, since they'll automatically refer to the root domain in that case.
 
Old 08-24-2004, 12:11 AM   #4
snipersock
LQ Newbie
 
Registered: Nov 2003
Location: Usa. California, Orange
Distribution: Fedora Core 2
Posts: 22

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by chort
There's no IN NS record for the root domain. When you created ns1.... IN NS what you're doing is saying "for the sub-domain ns1..., it's DNS server is ..."

You need to remove the ns1. and ns2. from in front of burningwind.com. and change the values from the IP address of the name server to the actual name. i.e. you need to switch the ns1... and ns2... to the right side of IN NS and have only burningwind.com. on the left side. Typically NS records are first in a zone file and as such you don't even need to put anything on the left side, since they'll automatically refer to the root domain in that case.
Thanks very much for that. Its working, sort of. I've got the mx record in place but can't connect to the mail server.
Code:
$ttl 38400
burningwind.com.	IN	SOA	burningwind.com. nick.localhost. (
			1093131747
			10800
			3600
			604800
			38400 )
burningwind.com.	IN	A	198.87.87.24
ns1.burningwind.com.	IN	A	198.87.87.168
ns2.burningwind.com.	IN	A	198.87.87.169
burningwind.com.	IN	NS	ns1.burningwind.com.
burningwind.com.	IN	NS	ns2.burningwind.com.
burningwind.com.	IN	MX	1 burningwind.com.
www.burningwind.com.	IN	CNAME	burningwind.com.
mail.burningwind.com.	IN	CNAME	burningwind.com.
As you can see by http://www.dnsreport.com/tools/dnsre...urningwind.com , I get a 'Reverse DNS entries for MX records' error. Any ideas?

~ Nick (snipersock@gmail.com)
 
Old 08-24-2004, 02:12 AM   #5
ppuru
Senior Member
 
Registered: Mar 2003
Location: Beautiful BC
Distribution: RedHat & clones, Slackware, SuSE, OpenBSD
Posts: 1,791

Rep: Reputation: 50
you need not be very concerned about it. If you do encounter a mailserver that dows reverse-dns checking ... your mails may be rejected by that domain.
 
Old 08-24-2004, 04:01 PM   #6
snipersock
LQ Newbie
 
Registered: Nov 2003
Location: Usa. California, Orange
Distribution: Fedora Core 2
Posts: 22

Original Poster
Rep: Reputation: 15
The problem I have is that there are no PTS entries. What format do i use to create one?

~ Nick
 
Old 08-24-2004, 05:00 PM   #7
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 69
I can connect to your mail server just fine.

Here's the DNS:
Code:
[chort@aten chort] dig burningwind.com mx

; <<>> DiG 9.2.3 <<>> burningwind.com mx
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 62634
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 1

;; QUESTION SECTION:
;burningwind.com.               IN      MX

;; ANSWER SECTION:
burningwind.com.        38400   IN      MX      1 burningwind.com.

;; AUTHORITY SECTION:
burningwind.com.        38400   IN      NS      ns1.burningwind.com.
burningwind.com.        38400   IN      NS      ns2.burningwind.com.

;; ADDITIONAL SECTION:
burningwind.com.        38400   IN      A       198.87.87.24

;; Query time: 422 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Tue Aug 24 13:57:20 2004
;; MSG SIZE  rcvd: 101
Here's connecting to the actual mail server:
Code:
[chort@aten chort] telnet burningwind.com 25
Trying 198.87.87.24...
Connected to burningwind.com.
Escape character is '^]'.
220 localhost.localdomain ESMTP Sendmail 8.12.10/8.12.10; Tue, 24 Aug 2004 16:56:00 -0400
quit
221 2.0.0 localhost.localdomain closing connection
Connection closed by foreign host.
In order to fix the reverse DNS error, you need to contact your ISP and ask them to change the PTR record for 198.87.87.24 like this:
Code:
24.87.87.198.in-addr.arpa. IN PTR burningwind.com.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
dns/bind stanev Debian 1 12-14-2004 09:05 AM
bind and dns? Digital_Err0r Linux - Newbie 5 03-18-2004 06:23 PM
DNS and Bind pharpe Linux - Networking 3 01-15-2003 03:54 PM
DNS and BIND buttnutt Linux - Networking 5 06-08-2002 07:02 PM
Bind and DNS thewoz Linux - Newbie 1 10-22-2001 05:25 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:15 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration