Installation/network problem

Have problem i can ping my LAN but when i try to ping name like http://www.test.com, i get
cannot resolve http://www.test.com: host name lookup failure

problem 2 is that whenever i try to install anything using
Code:
cd /usr/ports/www/****
make install clean
i get "Stop in /usr/ports/www/***

What is it that im i not doing right help please
 
1. sorry, but i dont seem to have resolv.conf in /etc/???

2. should the nameserver be there even if i go through my LAN router?
 
You must have a /etc/resolv.conf. If your router does the resolving, put its IP in there (nameserver ip.of.rou.ter).
 
Sorry for being a nuisense to you guys, but i made the file and looked into my LAN router, it says the nameserver is resolved dynamically what do i do next? apart from the resolv.conf file do i need to do anything in hosts.conf ?
 
qap15 said:
i made the file and looked into my LAN router, it says the nameserver is resolved dynamically what do i do next?
I guess that probably means you need to set your LAN router to be your nameserver in resolv.conf.

Incidentally, have you tried using DHCP on your network interface? If your router is a dhcp server, it'll probably publish correct name server info in dhcp, and dhclient will setup resolv.conf accordingly.
 
I thought that i did exactly that by putting the router gateway 192.168.1.1 into the /etc/resolv.conf
code:
nameserver 192.168.1.1
 
Sounds about right. From there the router either proxies dns requests by acting as a dns forwarder itself, or it advertises the ISP dns addresses in dhcp responses.
 
aragon said:
Sounds about right. From there the router either proxies dns requests by acting as a dns forwarder itself, or it advertises the ISP dns addresses in dhcp responses.

But by looking to what i've written into my resolv.conf where am i making the mistake?
 
sounds like you need to see if that router really responds to dns queries. one way to find out is with dig which comes with bind i believe. or maybe its just there by default but whatever just type:
dig @192.168.1.1 yahoo.com
you will either get an answer or a fail.
but I suggest just putting your ISP's public IP dns servers in your resolv.conf

Also not to sound dumb but did you try pinging a pulic ip past your riuter just to be sure you actually have a valid route to the net. Just incase hehe
 
Thank you guys, it was the static IP i had in rc.conf creating problems, once i changed that to "DHCP" everything worked. thanks alot
 
Back
Top