LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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-02-2001, 11:52 AM   #1
rebayona
LQ Newbie
 
Registered: Nov 2001
Location: Bogota, Colombia, South America
Distribution: RedHat 7.1
Posts: 13

Rep: Reputation: 0
Unhappy DNS misconfiguration or what is wrong here?


Hi, I've been browsing past posts here, and I have to say this place it's great! That guy who doesn't like ICQ it's a very generous person, giving his expertise and knowledge to others. Thanks a lot.

I'm new to linux, and it took me several weeks to make this thing working.
I'm running a server in order to be mailserver, DNS server and proxy server. For now, my mail server is running fine and DNS .... I'm not quite sure. I can send and receive messages, but sending them from some places work, but from other they doesn't. The DNS server name is ns1.setecsa.com and it was registered as primary name server with netsol. Mail server is mail.setecsa.com, and if you use a POP mail (web based) retreiver, it works perfect. But, if you try to ping, traceroute, or any attempt to resolve names on my domain (setecsa.com), they fail. Wrong IP to mail.setecsa.com, or similar messages. I called my ISP (I have 6 public IP's) and asked them about it, and they said something about not being able to use ns1.setecsa.com as a nameserver, as its IP address is already registered as setecsa6.att.net.co
My question is: Should I register setecsa6.att.ent.co as nameserver with netsol, or what should I do? What might be the problem? What am I missing here, or what am I doing wrong?

I know something's right since I'm able to receive mail under my domain name (if you want to test it, please send me a mail to test@setecsa.com), but something's wrong since some mailers doesn't see my server.

I can send you my config files for named if you want them. Or any test, config file, etc you might want to see. I'm running RedHat 7.1

Thanks a lot

Rafael

PS.

On another related mail topic, if it's OK if I read POP mails using PINE, and other mail programs, like Eudora? (Newbiest question)
 
Old 11-13-2001, 02:04 PM   #2
b0b0
Member
 
Registered: Nov 2001
Location: Kansas
Distribution: rh71/2, mandrake81
Posts: 53

Rep: Reputation: 15
post your BIND conf file...
 
Old 11-13-2001, 02:08 PM   #3
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594
Don't know whats wrong with the registration, but I don't get any valid Whois/RIPE/ARIN response for the att.co address.
OTOH, I do get response on ns1:
Hostname: ns1.setecsa.com
IP Address: 200.74.133.158
registered for SEGURIDAD TECNICA S.A.
Even if the DNS was setecsa6.att.net.co your ISP should be able to make an alias "ns1.setecsa.com" pointing to setecsa6.att.net.co .

Now im querying nameservers for setecsa.com, and I get:
ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 0
setecsa.com, type = NS, class = IN
ANSWER SECTION:
setecsa.com. 23h49m3s IN NS localhost.
setecsa.com. 23h49m3s IN NS ns1.

and for the MX records:
ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 2
setecsa.com, type = MX, class = IN
ANSWER SECTION:
setecsa.com. 1D IN MX 10 mail.setecsa.com.
(etc additional records)

So it says "the domain setecsa.com is referenced in the nameserver localhost, and in the nameserver ns1 (of the domain) (what? where? where can I find that DNS?).
IIRC (and Im no DNS guru) the SOA record maybe missing A records, because we do not get shown canonical name to address(IP) mapping (the "IN A" part in the SOA?).

If http://www.linuxdoc.org/HOWTO/DNS-HOWTO-5.html doesnt help, I suggest you post your zone data, always helpfull for ppl tryin to solve this.

HTH somehow
 
Old 11-13-2001, 02:53 PM   #4
rebayona
LQ Newbie
 
Registered: Nov 2001
Location: Bogota, Colombia, South America
Distribution: RedHat 7.1
Posts: 13

Original Poster
Rep: Reputation: 0
My config files

Thanks for replying guys, here you can see my named config files. Hope you can find what I'm missing here.

Thanks in advance,

Rafael

This is 0.0.127.in-addr.arpa.zone:

$TTL 86400
@ IN SOA localhost. root.localhost (
2 ; serial
28800 ; refresh
7200 ; retry
604800 ; expire
86400 ; ttk
)


@ IN NS localhost.
@ IN NS trinity.attla.net.co.

1 IN PTR localhost.

This is localhost.zone

$TTL 86400
@ IN SOA @ root.localhost (
2 ; serial
28800 ; refresh
7200 ; retry
604800 ; expire
86400 ; ttl
)


@ IN NS localhost.
@ IN NS trinity.attla.net.co

@ IN MX 10 mail.setecsa.com

@ IN A 127.0.0.1

This is setecsa.com.zone

$TTL 86400
@ IN SOA ns1.setecsa.com. root.localhost (
3 ; serial
28800 ; refresh
7200 ; retry
604800 ; expire
86400 ; ttl
)


ns1 IN NS trinity.attla.net.co
@ IN NS localhost.
@ IN NS ns1.
ns1 IN NS ns1.granitecanyon.com
ns1 IN NS ns2.granitecanyon.com

@ IN MX 10 mail.setecsa.com.
mail IN MX 10 mail
ns1 IN A 200.74.133.158
mail IN A 200.74.133.157
@ IN A 200.74.133.158
localhost IN A 127.0.0.1
www IN A 200.31.22.44

This is 133.74.200.in-addr.arpa.zone

$TTL 86400
@ IN SOA ns1.setecsa.com. root.localhost (
2 ; serial
28800 ; refresh
7200 ; retry
604800 ; expire
86400 ; ttk
)


@ IN NS ns1.
@ IN NS ns1.setecsa.com.
@ IN NS trinity.attla.net.co.

157 IN PTR mail.setecsa.com.
158 IN PTR ns1.setecsa.com.

This is named.local

$TTL 86400
@ IN SOA localhost. root.localhost. (
1997022700 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
IN NS localhost.

1 IN PTR localhost.
 
Old 11-13-2001, 03:52 PM   #5
ugge
Senior Member
 
Registered: Dec 2000
Location: Gothenburg, SWEDEN
Distribution: OpenSUSE 10.3
Posts: 1,028

Rep: Reputation: 45
Re: My config files

Quote:
Originally posted by rebayona

This is setecsa.com.zone

$TTL 86400
@ IN SOA ns1.setecsa.com. root.localhost (
3 ; serial
28800 ; refresh
7200 ; retry
604800 ; expire
86400 ; ttl
)


ns1 IN NS trinity.attla.net.co
@ IN NS localhost.
@ IN NS ns1.
ns1 IN NS ns1.granitecanyon.com
ns1 IN NS ns2.granitecanyon.com

@ IN MX 10 mail.setecsa.com.
mail IN MX 10 mail
ns1 IN A 200.74.133.158
mail IN A 200.74.133.157
@ IN A 200.74.133.158
localhost IN A 127.0.0.1
www IN A 200.31.22.44
I feel a bit confused about this part:
ns1 IN NS trinity.attla.net.co
@ IN NS localhost.
@ IN NS ns1.
ns1 IN NS ns1.granitecanyon.com
ns1 IN NS ns2.granitecanyon.com


If I'm reading it correctly it says that trinity.attla.net.co.setecsa.com is responsible for the domain ns1.setecsa.com
Every dns name in the zone files are added to the current domain unless they are ended with a .(dot)
If you look at your MX record it ends with a dot
@ IN MX 10 mail.setecsa.com.

I think your nameserver records should look like this
@ IN NS trinity.attla.net.com.
@ IN NS localhost.
@ IN NS ns1.
@ IN NS ns1.granitecanyon.com.
@ IN NS ns2.granitecanyon.com.


@ stands for the zone name given in the /etc/named.conf file, in your case probably setecsa.com

Please make backup copies of config files before tampering, I'm pretty new to DNS and bind.
 
Old 11-13-2001, 04:14 PM   #6
rebayona
LQ Newbie
 
Registered: Nov 2001
Location: Bogota, Colombia, South America
Distribution: RedHat 7.1
Posts: 13

Original Poster
Rep: Reputation: 0
Changes done

Thanks for replying,

I just made the changes you suggested. Now, How can I test them?

Rafael
 
Old 11-14-2001, 07:53 AM   #7
ugge
Senior Member
 
Registered: Dec 2000
Location: Gothenburg, SWEDEN
Distribution: OpenSUSE 10.3
Posts: 1,028

Rep: Reputation: 45
Try the command nslookup

nslookup is a tools for querying DNS servers, it can run in two different modes, command line or interractive.
nslookup without parameters enters interactive mode.
When nslookup is started you can querry some of your machines registered in dns file by entering their dns name and hit enter. To check the .in.addr.arpa give ip number of a host and nslookup will try to resolve the dns name.

Ooops forgot to tell you to increment the serial number in any dns-file you edit or else dns servers doesn't know anything is modified.

Take a look at this site for in depth knowledge in dns as well as a well covered introduction to dns.
http://router.algry.com.ua/books/ore...bind/index.htm
 
Old 11-14-2001, 09:30 AM   #8
rebayona
LQ Newbie
 
Registered: Nov 2001
Location: Bogota, Colombia, South America
Distribution: RedHat 7.1
Posts: 13

Original Poster
Rep: Reputation: 0
Hi ugge, thanks for your reply

When I do nslookup, (from a machine in a different network, ISP ..) this are the results:

nslookup setecsa.com

server: ns1.impsat.net.co
address: 200.31.12.1

*** ns1.impsat.net.cocan`t find setecsa.com: Non-existant domain

nslookup 200.74.133.XXX

server: ns1.impsat.net.co
address: 200.31.12.1

name: XXX.att.net.co
Address: 200.74.133.XXX

XXX.att.net.co it's OK, but it should have been resolved as ns1.setecsa.com instead. Should I ask att (my ISP) to add an "A" registry in their DNS pointing that IP to ns1.setecsa.com ? Or, as I manage my DNS indepently from them, should I do something different?

Thanks for helping,

Rafael
 
Old 11-19-2001, 07:18 AM   #9
ugge
Senior Member
 
Registered: Dec 2000
Location: Gothenburg, SWEDEN
Distribution: OpenSUSE 10.3
Posts: 1,028

Rep: Reputation: 45
I have tried to check the dns servers mentioned in your dns configuration.
Only one of them seems to work, ns1.granitecanyon.com
Both attla.net and ns2.granitecanyon.com doesn't resolve your dns name.

This is what I get from ns1.granitecanyon.com:
Code:
> ls setecsa.com
[[205.166.226.38]]
 setecsa.com.                   NS     server = ns1.setecsa.com.setecsa.com
 setecsa.com.                   NS     server = localhost
 setecsa.com.                   A      200.74.133.158
 mail                           A      200.74.133.157
 localhost                      A      127.0.0.1
 www                            A      200.31.22.44
 ns1                            NS     server = ns1.granitecanyon.com
 ns1                            NS     server = ns2.granitecanyon.com
 ns1                            NS     server = trinity.attla.net.co

> setecsa.com
Server:  [205.166.226.38]
Address:  205.166.226.38

Name:    setecsa.com
Address:  200.74.133.158
It looks like you have missed a trailing dot somewhere in setecsa.com.zone file. Apart from this problem there seems to be some problem with the other name servers, don't know what.
I tried to use your dns but can't reach it. Seems like your ISP didn't put your name server ip (200.74.133.158) in the in.addr-arpa file.
www server ip (200.31.22.44) seems missing to.

This is what I can come up to now, check with your ISP regarding your ip addresses and what they have put in the configs.
 
Old 12-04-2001, 12:41 PM   #10
rebayona
LQ Newbie
 
Registered: Nov 2001
Location: Bogota, Colombia, South America
Distribution: RedHat 7.1
Posts: 13

Original Poster
Rep: Reputation: 0
Talking Problem solved!

Hi, I just wanted to share that the problem is history now. (At least this is what I think, feel free to check). My ISP was the cause of the problem: They had to change the assigned name they had for that IP to the name I put to it, and that was it! (like unSpawn pointed)

Thanks for your support guys,

Rafael
 
Old 09-27-2005, 05:32 AM   #11
BongHongXanh
LQ Newbie
 
Registered: Jan 2005
Posts: 14

Rep: Reputation: 0
Please to check My DNS

i am runing Fedora2 Server; i configured DNS for LAN but it's working now.
IP eht0:
inet addr:192.168.0.9 Bcast:192.168.0.255 Mask:255.255.255.0
Gateway IP Add : 192.168.0.254

/etc/resolv.conf

domain hxanh.net
nameserver 192.168.0.9
nameserver 210.245.0.131



/etc/hosts


127.0.0.1 hxanh localhost.localdomain localhost
192.168.0.9 hxanh.net hxanh


/etc/hosts.conf

order hosts,bind
multi on


/etc/named.conf

// generated by named-bootconf.pl

options {
directory "/var/named";
pid-file "/var/run/named/named.pid";
/*
* If there is a firewall between you and nameservers you want
* to talk to, you might need to uncomment the query-source
* directive below. Previous versions of BIND always asked
* questions using port 53, but BIND 8.1 uses an unprivileged
* port by default.
*/
query-source address * port 53;
};

//
// a caching only nameserver config
//
controls {
inet * allow { any; } keys { rndckey; };
};

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

zone "localhost" IN {
type master;
file "localhost.zone";
allow-update { none; };
};

zone "0.0.127.in-addr.arpa" IN {
type master;
file "named.local";
allow-update { none; };
};

zone "hxanh.net" IN {
type master;
file "hxanh.net.db";
allow-update { none; };
};

zone "0.168.192.in-addr.arpa" IN {
type master;
file "0.168.192.in-addr.arpa.db";
allow-update { none; };
};

// slaver zone
//zone "hxanh.net" {
//type slave;
//file "example.hxanh.net";
// masters { 192.168.0.9; };
//};
include "/etc/rndc.key";




/var/named/chroot/var/named/hxanh.net.db

$TTL 86400
hxanh.net. IN SOA linux.hxanh.net. root.linux.hxanh.net. (
200408115
3600
3600
604800
86400 )


IN NS linux.hxanh.net.
IN MX 10 mail.hxanh.net.

linux IN A 192.168.0.9
mail IN A 192.168.0.10

localhost IN A 127.0.0.1

pc12.hxanh.net. IN A 192.168.0.12
pc5.hxanh.net. IN A 192.168.0.5
pc82.hxanh.net. IN A 192.168.0.82

dns IN CNAME linux
www IN CNAME linux
smtp IN CNAME linux
pop IN CNAME linux
ftp IN CNAME linux

pc15.hxanh.net. IN A 192.168.0.15
dhcp200.hxanh.net. IN A 192.168.0.200
dhcp201.hxanh.net. IN A 192.168.0.201
dhcp202.hxanh.net. IN A 192.168.0.202




/var/named/chroot/var/named/0.168.192.in-addr.arpa.db


0.168.192.in-addr.arpa. IN SOA linux.hxanh.net. root.linux.hxanh.net. (
200408106
3600
3600
604800
86400 )

NS linux.hxanh.net.
NS mail.hxanh.net.
NS www.hxanh.net.

1 IN PTR linux.hxanh.net.
2 IN PTR mail.hxanh.net.
3 IN PTR www.hxanh.net.

12 IN PTR pc12.hxanh.net.
5 IN PTR pc5.hxanh.net.
82 IN PTR pc82.hxanh.net.
15.0.168.192.in-addr.arpa. IN PTR pc15.hxanh.net.

200.0.168.192.in-addr.arpa. IN PTR dhcp200.hxanh.net.
201.0.168.192.in-addr.arpa. IN PTR dhcp201.hxanh.net.
202.0.168.192.in-addr.arpa. IN PTR dhcp202.hxanh.net.




When i configured finish ; i have to get a error:

[root@hxanh root]# nslookup 192.168.0.1
Server: 210.245.0.131
Address: 210.245.0.131#53

** server can't find 1.0.168.192.in-addr.arpa: NXDOMAIN

Client, i configured :
IP Add : 192.168.7 netmask:255.255.255.0
gateway IP Add: 192.168.0.9;


Use command: nslookup 192.168.0.9
Error : Can't find server 192.168.0.9;

i don'n know i am wrong here ! Please help me !

Pla
 
  


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 test result. What's wrong? frankpretec Linux - Networking 3 04-05-2005 08:21 PM
Help!! DNS failed, what is wrong on my setting? explorer1979 Linux - Networking 3 04-02-2004 01:11 PM
VL4.0 machine registers wrong name in my DNS MartinN VectorLinux 1 12-02-2003 07:16 AM
PPP and Wrong ISP DNS Allen614 Slackware 1 02-16-2003 12:12 PM
DNS- Whats wrong here? bripage Linux - Networking 7 01-23-2003 12:42 AM

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

All times are GMT -5. The time now is 07:41 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