LinuxQuestions.org
Visit Jeremy's Blog.
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 11-09-2005, 08:41 AM   #16
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,222
Blog Entries: 1

Rep: Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076

What happens if you run from dns server:
Code:
nslookup komp1
or 
dig komp1
Mind that it's /etc/resolv.conf not /etc/resolve.conf

Last edited by bathory; 11-09-2005 at 08:42 AM.
 
Old 11-10-2005, 05:03 AM   #17
czezz
Member
 
Registered: Nov 2004
Distribution: Slackware/Solaris
Posts: 940

Original Poster
Rep: Reputation: 44
OMG !!!
It was port 53 !!! I was sure I set to accept that port and indeed it was but only for external interface.
When i set port 53 for LAN it started works.

Thank you Bathory for your priceless advices.
Now im goint to set DNS to internet.
 
Old 11-10-2005, 06:06 AM   #18
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,222
Blog Entries: 1

Rep: Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076
Glad to see you've made it.

Regards
 
Old 11-20-2005, 09:09 AM   #19
czezz
Member
 
Registered: Nov 2004
Distribution: Slackware/Solaris
Posts: 940

Original Poster
Rep: Reputation: 44
Since DNS works fine i decided to run mail server (on Postfix). Before I start doing that I neet to be sure that my DNS configuration is ready for mailserver.
This is my current test.com file:

Code:
$TTL 86400 
$ORIGIN test.com. 
@ IN SOA  test.com. postmaster.test.com. ( 
2005110704 ; serial (d. adams) 
8640 ; refresh 
3600 ; retry 
3600000 ; expiry 
1209600 ) ; min 
IN NS ns1.test.com. 
IN NS ns2.test.com. 
IN MX 10 test.com. 
@ IN A 144.67.67.1 
www IN A 144.67.67.1 
ns1 IN A 144.67.67.1 
ns2 IN A 144.67.67.1 
ftp IN A 144.67.67.1 
komp1 IN A 10.3.11.21
Can you please verify it ?
 
Old 11-21-2005, 02:15 AM   #20
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,222
Blog Entries: 1

Rep: Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076
You must give your mailserver a FQDN (fully qualified domain name) which must also resolve to it's IP. So your zone file must be:
Code:
IN MX 10 mail.test.com.
mail IN A xx.xx.xx.xx
and you must put a PTR record in your reverse-zone file:
Code:
xx PTR mail.test.com.
These are necessary for spam fighting reasons, as most mailservers do not accept mail from hosts that don't have FQDN and don't resolve to an IP address.
 
Old 11-22-2005, 02:49 AM   #21
czezz
Member
 
Registered: Nov 2004
Distribution: Slackware/Solaris
Posts: 940

Original Poster
Rep: Reputation: 44
Ok, so now my test.com file looks like this:

Code:
$TTL 86400 
$ORIGIN test.com. 
@ IN SOA  test.com. postmaster.test.com. ( 
2005110704 ; serial (d. adams) 
8640 ; refresh 
3600 ; retry 
3600000 ; expiry 
1209600 ) ; min 
IN NS ns1.test.com. 
IN NS ns2.test.com. 
IN MX 10 test.com. 
IN MX 10 mail.test.com.
@ IN A 144.67.67.1 
www IN A 144.67.67.1 
ns1 IN A 144.67.67.1 
ns2 IN A 144.67.67.1 
ftp IN A 144.67.67.1 
mail IN A 144.67.67.1
komp1 IN A 10.3.11.21
What about PTR record and reverse-zone file ? How should that file looks like and where should I put it ? Is it necessery to do some changes in named.conf and test.com?

Details (just for sure)
my DNS server IP: 144.67.67.1 - this should be IP of mailserver as well. Domain test.com

Last edited by czezz; 11-22-2005 at 02:54 AM.
 
Old 11-22-2005, 04:09 AM   #22
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,222
Blog Entries: 1

Rep: Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076
Reverse dns is a little complicated and it depends on how your ISP delegates your subnet. Read this to see how it's done. Anyway if you want to support reverse dns, you have to contact your ISP to find out your IP range, you must create a zone file named "xx.xx.xx.xx-in-addr.arpa" according to that IP range and of course add the entry for this zone to named.conf.
 
Old 12-10-2005, 07:16 AM   #23
czezz
Member
 
Registered: Nov 2004
Distribution: Slackware/Solaris
Posts: 940

Original Poster
Rep: Reputation: 44
Ok, here is an update of my files to start DNS:

named.conf
PHP Code:
options {
    
directory "/var/named";
    
     
query-source address port 53;
};

logging{
category lame-servers{
null;
};
};

zone "." IN {
type hint;
file "named.cache";
};

zone "test.com" {
type master;
file "test.com";
allow-update none; };
allow-transfer 144.67.67.2; };
notify yes;
};

zone "67.67.144.in-addr.arpa" {
notify yes;
type master;
file "67.67.144.in-addr.arpa";
}; 
test.com
PHP Code:
$TTL 86400 
$ORIGIN test
.com
IN SOA  test.compostmaster.test.com. ( 
2005110704 serial (dadams
8640 refresh 
3600 
retry 
3600000 
expiry 
1209600 
) ; min 
IN NS ns1
.test.com
IN NS ns2.test.com
IN MX 10 test.com
IN MX 10 mail.test.com.
IN A 144.67.67.1 
www IN A 144.67.67.1 
ns1 IN A 144.67.67.1 
ns2 IN A 144.67.67.1 
ftp IN A 144.67.67.1 
mail IN A 144.67.67.1
pop IN A 144.67.67.1
smtp IN A 144.67.67.1
komp1 IN A 10.3.11.21 
and the last one 160.238.83.in-addr.arpa
PHP Code:
@            IN    SOA    ns1.test.com.    ns2.test.com.    (
                    
2005121001    serial (dadams)
                    
8640        refresh
                    3600        
retry
                    3600000        
expiry
                    1209600 
)    ; min

;
                
NS     ns1.test.com.
21                PTR    test.com 
and in the last file is a problem because when I rstarted BIND
in syslog I saw:
PHP Code:
Dec 10 13:43:59 proxy-2 named[13846]: 67.67.144.in-addr.arpa:1no TTL specifiedusing SOA MINTTL instead
Dec 10 13
:43:59 proxy-2 named[13846]: 67.67.144.in-addr.arpafile does not end with newline 
where and how specifi this TTL, and how check that revDNS works ?
 
Old 12-10-2005, 08:46 AM   #24
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,222
Blog Entries: 1

Rep: Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076
You can use the same TTL as in the test.com file:
Code:
$TTL 86400
For the newline error, I don't know, perhaps leaving a blank line at the end of the file will stop this error.
To test your reverse dns run:
Code:
nslookup 147.67.67.21
dig 147.67.67.21
dig 147.67.67.21 @xx.xx.xx.xx
where xx.xx.xx.xx is a third dns (perhaps your ISP's dns)
or use this site.
 
  


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
BIND Error Kenji Miyamoto Slackware 1 05-22-2005 06:37 AM
bind 9.2.3 error mcalizo Linux - General 1 10-11-2004 05:39 AM
Bind Error sakkie Linux - Networking 1 10-12-2003 09:28 AM
bind error tandre Linux - Software 12 04-15-2003 06:15 PM
Bind 9.2.1 error Saleen_GT_S281 Linux - Networking 4 11-15-2002 02:27 PM

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

All times are GMT -5. The time now is 12:17 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
Open Source Consulting | Domain Registration