LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   dns starting... (https://www.linuxquestions.org/questions/linux-newbie-8/dns-starting-64486/)

kailuaboy 06-09-2003 03:32 AM

dns starting...
 
I am going through the dns setup for my suse linux 8.2 pro and i keep getting an error when I type in http://localhost, and http://127.0.0.1 like it tells me too.

I have looked in /etc/resolv.conf and have this:

search dsl-verizon.net
nameserver 4.2.2.4
nameserver 4.2.2.5
nameserver 4.2.2.6


this is for my DSL connection obviously.... now, do I need to add anything to get a DNS configuration going? I did command rcnamed start already.

Please help me get my DNS configs going. :confused:

Thanks,
Ivan:(

Mara 06-09-2003 01:25 PM

You need to add your DNS to your resolv.conf. The file should be like this:
search dsl-verizon.net
nameserver 127.0.0.1
nameserver 4.2.2.4
nameserver 4.2.2.5
nameserver 4.2.2.6

BTW You can test your DNS using
dig @127.0.0.1 hostname
where hostname is any hostname (may be linuxquestions.org).

kailuaboy 06-09-2003 01:52 PM

ok... I added the nameserver 127.0.0.1 to my resolv.conf file.

I now tryed http://localhost, and http://127.0.0.1 and still nothing.

do I need to restart apache? do I need to restart my machine?
also, how do I create an IP? say I want an IP like 152.135.153.135 (just for an example), and want it to point to kailuawireless.net.
1. How would I create the IP?
2. How would I forward it to kailuawireless.net?


Thank you,
Ivan

Mara 06-09-2003 02:01 PM

You don't create IPs. You assign only local ones, not global. DNS is used to get a name, let's say kailuawireless.net and find the server that knows which IP is it.
BTW Please try dig. If it shows you an IP, it menas your DNS works correctly.

What happens when you run http://127.0.0.1? Could you copy the message?

kailuaboy 06-09-2003 03:13 PM

I get this message when I run http://127.0.0.1

An error occured while loading http://127.0.0.1?:


Could not connect to host 127.0.0.1



----------
Also, I tryed dig... it didnt work.

Ivan

Proud 06-09-2003 03:23 PM

Are you blocking port 53 for DNS?

kailuaboy 06-09-2003 04:07 PM

I dont know... I dont think so... how would I be able to check?

Ivan

aherm 06-09-2003 04:08 PM

You should install webmin and start apache e.g. from http://localhost:10000.

Even with default apache installation starting it in webmin enabling access to http://localhost, and http://127.0.0.1 right away.

You should unblock some ports (www 80) from SuSE firewall to make it accessible from outside.


Have fun :-)

Proud 06-09-2003 04:17 PM

I dont think installing apache or webmin will really help here, it'll just add another security risk and thing to investigate.
Have a look at your iptables rules, via a graphical frontend if you use one. Port 80 is for web access, eg viewing and serving webpages.

kailuaboy 06-09-2003 09:58 PM

what about DNS2go, or Zoneedit.com? I have heard I should use those to get my webserver up with DNS availability.

What do you think?

ivan


All times are GMT -5. The time now is 02:47 AM.