LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 09-22-2006, 04:07 PM   #1
ballistic509
Member
 
Registered: Feb 2006
Distribution: CentOS
Posts: 114

Rep: Reputation: 15
ERROR! Cannot resolve


ok im using a hosting panel (DTC) and i have contacted their support and they say this is a DNS problem and i have been trying to figure this out for a while now:

I get the error: "ERROR! Cannot resolv 3gxlive.com"

yet, everything seems to continue working just fine as long as i have my ISP DNS servers in /etc/resolv.conf

/etc/resolv.conf

Code:
search
nameserver 68.185.32.10
nameserver 68.185.34.67
nameserver 68.116.46.115
nameserver 127.0.0.1
if i put 'nameserver 127.0.0.1' then my server cannot reach the outside world. i have attempted so many different combinations between resolv.conf and named.conf.options (using forwarders) nothing works

what does anyone think the problem could be?
 
Old 09-22-2006, 04:10 PM   #2
Nathanael
Member
 
Registered: May 2004
Location: Karlsruhe, Germany
Distribution: debian, gentoo, os x (darwin), ubuntu
Posts: 940

Rep: Reputation: 33
are you trying to setup your own dns server,relay?
then i assume you are using bind?
 
Old 09-22-2006, 04:13 PM   #3
ballistic509
Member
 
Registered: Feb 2006
Distribution: CentOS
Posts: 114

Original Poster
Rep: Reputation: 15
oh yes, i am using bind, but it is odd how i get this error but everything seems to be running fine (until i take my ISP DNS servers out of resolv.conf) i think i would need my DNS server setup as a relay? im not quite sure but when i remove my ISP DNS servers i cannot send data to the outside, but the world can see my system (means i can receive mail, but cant send) lol
 
Old 09-22-2006, 04:16 PM   #4
Dutch Master
Senior Member
 
Registered: Dec 2005
Posts: 1,686

Rep: Reputation: 124Reputation: 124
Leave 127.0.0.1 out. Put it in /etc/hosts. In my /etc/resolv.conf there is no 127.0.0.1, 'cause that is equal to localhost (in other words: it'll search for anything on your own machine, and fail...) Btw, why would you want to leave the ISP's DNS servers out? That DNS entry is just what the machine expects there! To be honest, I don't think you really understand the basics of networking. Try to grasp that first, find yourself a suitable HowTo on the net.

Last edited by Dutch Master; 09-22-2006 at 04:20 PM.
 
Old 09-22-2006, 04:21 PM   #5
ballistic509
Member
 
Registered: Feb 2006
Distribution: CentOS
Posts: 114

Original Poster
Rep: Reputation: 15
same thing lol....still the same error

Quote:
ERROR! Cannot resolve 3gxlive.com
 
Old 09-22-2006, 04:33 PM   #6
Dutch Master
Senior Member
 
Registered: Dec 2005
Posts: 1,686

Rep: Reputation: 124Reputation: 124
Your /etc/resolv.conf should only contain
Code:
search
nameserver 68.185.32.10
nameserver 68.185.34.67
nameserver 68.116.46.115
To be sure your ISP DNS servers are not at fault, try the DNS servers from my ISP (known to work!)
Code:
search
nameserver 194.109.104.104
nameserver 194.109.6.66
 
Old 09-22-2006, 04:39 PM   #7
ballistic509
Member
 
Registered: Feb 2006
Distribution: CentOS
Posts: 114

Original Poster
Rep: Reputation: 15
no luck with your ISP servers; it makes my server not be able to connect to anything again
 
Old 09-22-2006, 07:27 PM   #8
Nathanael
Member
 
Registered: May 2004
Location: Karlsruhe, Germany
Distribution: debian, gentoo, os x (darwin), ubuntu
Posts: 940

Rep: Reputation: 33
Quote:
Originally Posted by Dutch Master
Leave 127.0.0.1 out. Put it in /etc/hosts. In my /etc/resolv.conf there is no 127.0.0.1, 'cause that is equal to localhost (in other words: it'll search for anything on your own machine, and fail...) Btw, why would you want to leave the ISP's DNS servers out? That DNS entry is just what the machine expects there! To be honest, I don't think you really understand the basics of networking. Try to grasp that first, find yourself a suitable HowTo on the net.
you seem to be missing the fact that the user is trying to run his/her own dns server on which the queried domain name seems to be listed...
the user is adding localhost to check if the dns name is being resolved - is my assumption on this case - appologies if this is wrong - but the member did state he/she was running bind which is a dns service
basics are present enough to be trying to run a dns server otherwise the member would not have tried adding localhost to the resolv.conf file
adding localhost to the /etc/hosts file does not allow dig for example to query your local dns server - i suggest you try to grasp the difference between an entry in /etc/hosts and /etc/resolv.conf when running bind and wanting to check if the dns server is up and running!

edit:
-sorry if this seems a little harsh - but it seems appropriate to me following the posted lines by Dutch Master

Last edited by Nathanael; 09-22-2006 at 07:38 PM.
 
Old 09-22-2006, 07:35 PM   #9
Nathanael
Member
 
Registered: May 2004
Location: Karlsruhe, Germany
Distribution: debian, gentoo, os x (darwin), ubuntu
Posts: 940

Rep: Reputation: 33
Dear ballistic509

i suggest you use 'dig' to test bind or a dns service - for now leave /etc/resolv.conf the way it is supposed to be to work correctly. bind should be running and you can check a dns service using dig without having an entry in your resolv.conf file for your local dns service.

if dig is not installed run 'apt-get install dnsutils'
now:
dig <domainname> @<servername>

it is also very important that you query the address bind is listening on, that iptables is not blocking port 53 udp and of course bind should be running.
if bind is lisstening to 123.456.789.123 (on purpose i chose an invalid ip)
then you need to run dig as follows
Code:
dig 3gxlive.com @123.456.789.123
this way dig will query 123.456.789.123 for the domain name 3gxlive.com
 
Old 09-22-2006, 07:40 PM   #10
Nathanael
Member
 
Registered: May 2004
Location: Karlsruhe, Germany
Distribution: debian, gentoo, os x (darwin), ubuntu
Posts: 940

Rep: Reputation: 33
Quote:
Originally Posted by Dutch Master
Your /etc/resolv.conf should only contain
Code:
search
nameserver 68.185.32.10
nameserver 68.185.34.67
nameserver 68.116.46.115
To be sure your ISP DNS servers are not at fault, try the DNS servers from my ISP (known to work!)
Code:
search
nameserver 194.109.104.104
nameserver 194.109.6.66
ISP's dont usually have their dns servers open to all but restricted to their subnets!
that would also explain why it is not working for somebody on another isp's subnet

most commonly isp's will offer dns relays (rather than servers) to their dsl/dial-up/etc clients

Last edited by Nathanael; 09-22-2006 at 07:41 PM.
 
Old 09-22-2006, 09:04 PM   #11
ballistic509
Member
 
Registered: Feb 2006
Distribution: CentOS
Posts: 114

Original Poster
Rep: Reputation: 15
ok, this is how its supposed to be:

Quote:
search
nameserver 127.0.0.1
so thats how i have it while using 'dig'...now this is what dig shows back (ip changed)

Quote:
ns1:~# dig 3gxlive.com @ns1

; <<>> DiG 9.2.4 <<>> 3gxlive.com @ns1
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 27333
;; flags: qr aa rd; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 2

;; QUESTION SECTION:
;3gxlive.com. IN A

;; ANSWER SECTION:
3gxlive.com. 7200 IN A 68.186.00.00

;; AUTHORITY SECTION:
3gxlive.com. 7200 IN NS ns1.3gxlive.com.
3gxlive.com. 7200 IN NS ns2.3gxlive.com.

;; ADDITIONAL SECTION:
ns1.3gxlive.com. 7200 IN A 68.186.00.00
ns2.3gxlive.com. 7200 IN A 68.186.00.00

;; Query time: 42 msec
;; SERVER: 127.0.0.1#53(ns1)
;; WHEN: Fri Sep 22 19:08:21 2006
;; MSG SIZE rcvd: 113
and

Quote:
ns1:~# dig 3gxlive.com @68.186.00.00

; <<>> DiG 9.2.4 <<>> 3gxlive.com @68.186.00.00
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 56899
;; flags: qr aa rd; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 2

;; QUESTION SECTION:
;3gxlive.com. IN A

;; ANSWER SECTION:
3gxlive.com. 7200 IN A 68.186.00.00

;; AUTHORITY SECTION:
3gxlive.com. 7200 IN NS ns1.3gxlive.com.
3gxlive.com. 7200 IN NS ns2.3gxlive.com.

;; ADDITIONAL SECTION:
ns1.3gxlive.com. 7200 IN A 68.186.00.00
ns2.3gxlive.com. 7200 IN A 68.186.00.00

;; Query time: 408 msec
;; SERVER: 68.186.00.00#53(68.186.00.00)
;; WHEN: Fri Sep 22 19:00:20 2006
;; MSG SIZE rcvd: 113

Last edited by ballistic509; 09-22-2006 at 09:09 PM.
 
Old 09-23-2006, 02:55 AM   #12
Nathanael
Member
 
Registered: May 2004
Location: Karlsruhe, Germany
Distribution: debian, gentoo, os x (darwin), ubuntu
Posts: 940

Rep: Reputation: 33
so ? bind is working - but it is listening to 127.0.0.1
and not your public ip address - which is what others would access your dns server on
so you need to configure bind to listen to your public address

i also hope that bind does not really output 68.186.00.00 but that this is an edit

a little hind if you edit an ip: use x y and i-dont-know-what to make it obviouse: e.g. 68.186.x.y
 
Old 09-23-2006, 03:03 AM   #13
ballistic509
Member
 
Registered: Feb 2006
Distribution: CentOS
Posts: 114

Original Poster
Rep: Reputation: 15
lol it was an edit..should i post any bind config files so u could see what to change or what? lol...im pretty new to dns
 
Old 09-23-2006, 03:15 AM   #14
Nathanael
Member
 
Registered: May 2004
Location: Karlsruhe, Germany
Distribution: debian, gentoo, os x (darwin), ubuntu
Posts: 940

Rep: Reputation: 33
that is fine - just making sure - as a lot of people would no tell you that bind is configured incorrectly and responding with network addresses rather than ip addresses and that you should try to grasp networking first
:-D
but in all honesty what you are doing is good for the beginning and you are heading in the right way.
it is also quite a tough one trying to get your head around bind as it is very complex - i have always avoided bind and reverted to djbdns which is - when handling small numbers of dns names - very simple and easy to understand and setup. i have 2 dns servers running djbdns (tinydns and axfrdns)

just remember to replace ip octals with letters rather than other numbers as it may be confusing to others
esp. for this following job i have for you:

could you post your bind config? (dont forget to edit ip's :-)
 
Old 09-23-2006, 03:19 AM   #15
ballistic509
Member
 
Registered: Feb 2006
Distribution: CentOS
Posts: 114

Original Poster
Rep: Reputation: 15
if your talkin bout named.conf then here it is:

Quote:
include "/etc/bind/named.conf.options";

// reduce log verbosity on issues outside our control
logging {
category lame-servers { null; };
category cname { null; };
};

// prime the server with knowledge of the root servers
zone "." {
type hint;
file "/etc/bind/db.root";
};

// be authoritative for the localhost forward and reverse zones, and for
// broadcast zones as per RFC 1912

zone "localhost" {
type master;
file "/etc/bind/db.local";
};

zone "127.in-addr.arpa" {
type master;
file "/etc/bind/db.127";
};

zone "0.in-addr.arpa" {
type master;
file "/etc/bind/db.0";
};

zone "255.in-addr.arpa" {
type master;
file "/etc/bind/db.255";
};

// add local zone definitions here
include "/etc/bind/named.conf.local";

// Configured by DTC v0.10 : please don't touch this line !
include "/usr/share/dtc/etc/named.conf";
 
  


Reply



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
Any one know how can i resolve error about libcryto.so.2 touqeeransar Linux - Security 3 12-08-2005 09:22 AM
Apache Error I Can't Resolve carlosinfl Linux - Networking 3 11-18-2005 07:27 PM
Help!!! I can't resolve a gtk+ 2.4.7 configure error RJARRRPCGP Linux - Newbie 1 11-22-2004 02:08 AM
How to resolve log rotation error? sdebiasio Linux - Newbie 4 09-08-2004 02:48 AM
how to resolve this error? sensovision Linux - Software 3 07-07-2004 03:42 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

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