Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Host Resolution
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
MJGdaishi
n00b
n00b


Joined: 12 Jun 2011
Posts: 10
Location: Arizona USA

PostPosted: Mon Jul 11, 2011 3:02 am    Post subject: Host Resolution Reply with quote

I've recently set up a server running Gentoo. My plan is to set up web serving on it as well, however, When I boot to the kernel and attempt to emerge apache, I am hit with the 'unable to resolve host address' error. I've tried pinging google and ping returns that www.google.com is an unknown host. My resolv.conf contains:
Quote:
# Generated by dhcpcd for interface eth0
search ph.cox.net
nameserver 68.105.28.11
nameserver 68.105.29.11
nameserver 68.105.28.12
I'm wondering if it's something that I have failed to configure in my kernel. I'm able to emerge packages from the minimal install environment (even when I chroot into my own) As far as I know I have everything set up correctly. But then again. maybe I'm not seeing the specific tree from the forest. any Ideas as to what I need to post to help trouble shoot this error?
_________________
We should admire those who have our back more than those who turn our head.
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 23062

PostPosted: Mon Jul 11, 2011 4:15 am    Post subject: Reply with quote

What is the output of dig www.google.com @68.105.28.11? You may need to emerge --noreplace net-dns/bind-tools first.
Back to top
View user's profile Send private message
MJGdaishi
n00b
n00b


Joined: 12 Jun 2011
Posts: 10
Location: Arizona USA

PostPosted: Wed Jul 13, 2011 7:12 am    Post subject: Reply with quote

Hu wrote:
What is the output of dig www.google.com @68.105.28.11? You may need to emerge --noreplace net-dns/bind-tools first.


-bash: dig: command not found

Is the reply I get from inside my installation. I'll reboot with the disc and emerge the tool as well as bind-tools and try again from within my install.
_________________
We should admire those who have our back more than those who turn our head.
Back to top
View user's profile Send private message
MJGdaishi
n00b
n00b


Joined: 12 Jun 2011
Posts: 10
Location: Arizona USA

PostPosted: Sat Jul 16, 2011 8:15 pm    Post subject: Reply with quote

I recieve

Digs version XXX
global _____ +cmd
connection to server timed out

Anyways, Along those lines, I don't remember the entire output of the command and I figure I might as well try again with a current minimal install disc. So I will wipe the disc and try again. :D We'll see how that goes.
_________________
We should admire those who have our back more than those who turn our head.
Back to top
View user's profile Send private message
Princess Nell
l33t
l33t


Joined: 15 Apr 2005
Posts: 927

PostPosted: Sat Jul 16, 2011 9:25 pm    Post subject: Reply with quote

@Hu: <nitpick>I would dig for www.google.com.</nitpick>

It is more helpful to cut and paste the actual command result than describing it.

I get a result for "dig www.google.com. @68.105.28.11", you get "connection to server timed out". Something in your network is blocking DNS queries - it could be a local iptables firewall, or a router, or a firewall. For DNS resolution to work, any such devices need to allow connections to destination port 53 udp and tcp.
Back to top
View user's profile Send private message
chithanh
Developer
Developer


Joined: 05 Aug 2006
Posts: 2158
Location: Berlin, Germany

PostPosted: Sat Jul 16, 2011 10:09 pm    Post subject: Reply with quote

If you cannot emerge because your DNS doesn't work, you can put an entry for distfiles.gentoo.org in /etc/hosts manually.
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 23062

PostPosted: Sat Jul 16, 2011 10:24 pm    Post subject: Reply with quote

Princess Nell wrote:
@Hu: <nitpick>I would dig for www.google.com.</nitpick>
Technically, yes, the name should have a trailing dot. However, the default options for dig do not use the search list, which should be equivalent to specifying a trailing dot.
Back to top
View user's profile Send private message
wcg
Guru
Guru


Joined: 06 Jan 2009
Posts: 588

PostPosted: Tue Jul 19, 2011 3:14 am    Post subject: Reply with quote

Look at /etc/conf.d/net and /etc/conf.d/net.example. There was something
about an explicit resolver setting stomping on resolv.conf. (Commented out
by default, IIRC.)

Even that is not it, there may be something in there that illuminates
the problem.
_________________
TIA
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum