View Full Version : Browser and DNS
kindboy
peace,,, men
when i write a url in my browser Mozilla or Galeon
can't reslove it ,,,,, and does not connect
i read in the help dcocuments that i have to add DNS addresses but i don't know how!!!
thanx 4 being helpful
whirlpool
what internet dialer you are using ?
Kppp, wvdial, or ppp-on scripts ?
Since they should automatically find the DNS server of your ISP and add it to /etc/hosts.conf
If things still don't work out. Try installing BIND and/or the chaching name server package. (but this is generally not highly encouraged as it is a might be a security hole if you don't have the latest bind.)
uniball
Originally posted by whirlpool
/etc/hosts.conf
/etc/resolv.conf
kindboy:
what's the output of
ls -lh /etc/resolv.conf
and
ls -lh /etc/ppp/resolv.conf
?
habdin
Salamo 3alaikom,
In the old pre-free Internet, we used to use the DNS servers used by the ISP we were using. I don't know how does that thing work in the free dialup Internet these days. Any ISP working is available for more explanation???
Salam.
mohamed
You shouldn't care about adjusting the DNS settings, as it is sent to your ppp during connection negotiations.
May be some applications can't recognize it.
At least, I know kppp can do it.
For sure you have to use the DNS of the ISP you are dialing into his numbers.
So, I can't give specific DNS settings.
(unless you like that lion ;) )
MadFarmAnimalz
Originally posted by habdin
Salamo 3alaikom,
In the old pre-free Internet, we used to use the DNS servers used by the ISP we were using. I don't know how does that thing work in the free dialup Internet these days. Any ISP working is available for more explanation???
Salam.
When pppd registers a successful connection, it will execute a script called /etc/ppp/ip-up . It will also export two environment variables, $DNS1 and $DNS2 (assuming you have `usepeerdns' in your options file). It is customary for ip-up tomodify your /etc/resolv.conf along these lines:
mv /etc/resolv.conf /etc/resolv.conf.old
echo "nameserver $DNS1" > /etc/resolv.conf
echo "nameserver $DNS2" >> /etc/resolv.conf
That is the basic idea, at least. Most modern distros do it this way. `usepeerdns' will instruct pppd to get two DNS addresses from the remote peer while negotiating the connection, thus, like the old pre-free internet, you're provided with two DNS addresses.
Make things clearer?
joe_lite
please check the DHCP client configuration as it is the piece who determine ur ip adress as obtained from the DHCP server of ur ISP provider
kindboy
Mr uniball
i tried what u told me this command just listed the file and nothing else
,,,,that is what i did in my connection i added tha DNS ip addresses by using the " ipconfig /all" command from Windows 2000 and i added them to my connection and ,,,,,nothing changed
here what is the problem exactly ,. i can use my gppp to dial to the internet now i am connected .... then i open Mozilla or Galeon web browser and write any URL.. i see in the bottom of the browser " resloving host name" and loading site ;;
that said nothing else........
plz tell me what to do cauz i don't lose my trust in Linux cauz i have MCSE but i hate Windows os...
redhat_Linux
i need to know what is the problem 1st after u connect ping to ip and see the replay and then ping to URl that will tell us if it DNS problem or what
kindboy
i open the terminal and write
ping linux-egypt.com
the output is " destination host unreachable "
and i cannot open any site ,,,,,,,
plz plz plz i want to access the internet
angoranimi
type "netstat -rn" and show us the output. this should display the routing table.
kindboy
peace men...
here is the result of netstat -rn command
Destination gateway genmask flag MSS
172.17.4.205 0.0.0.0 255.255.255.255 UH 40
Iface
ppp0
angoranimi
"route add default gw 172.17.4.205"
try that (assuming 172.17.4.205 is the other end of the ppp connection)
sattia
ur pppd doesnt add the default route becuase either it is not existing in the LCP reply of PPP from the AS or ur PPP options file contains the nodefault route.
so first make sure that the file contains the defaultroute option.
if it fialed to set the default route automatically then after doing netstat -nr uve to add the default route urself. So for example if netstat -nr displayed the following
Destination gateway genmask flag Iface
172.17.4.25 0.0.0.0 255.255.255.255 UH ppp0
then u ve to do as root the following command
# route add default gw 172.17.4.25 dev ppp0
joe_lite
this is the first time I hear that dialups r assigned IPs through DHCP what is PPP making then?
kindboy
i discovered the problem
i added the default gatway ... and now i can access the internet but i have to do that manually, can u help me do it auto matically (dinamic) i don't want to do this each time i access the internet
thanx 4 being heelpful
angoranimi
anytime.
What are you using to initiate the ppp connection? and what service provider are you using (does it work from windows to the same service provider?).
Those 172's gives me a feeling its geganet.
sattia
why it is geganet?
btw it isnt
angoranimi
back then, 3 years ago or so, when I used to use geganet dialup they used private addressees on the local loop.
and by the way, it is very common to find a ppp-setup which uses dhcp.
vBulletin v3.0.1, Copyright ©2000-2004, Jelsoft Enterprises Ltd.