Click to See Complete Forum and Search --> : DNS program..
iC3man
10-08-2003, 05:00 AM
Im currently running Slackware9.0 and everything works fine.. i got a network running and so on..
now.. i want a dns name wired to my ip..
so insted of typing 123.456.78.90 so can i type www.stupidamericans.com or something :)(no offence, im american)..
what program do i need to install??..
and what kind of cfg do i need??..
any help at all would be appreciated..
/thx in advance
You could easily do that in the /etc/hosts file.
jrbush82
10-08-2003, 07:19 AM
There is no special program that you need to install. Just edit /etc/hosts and add the following line:
192.168.0.1 www.stupidamericans.com
iC3man
10-08-2003, 07:36 AM
ohh crap.. is it that easy :D..
thx dude..
but i use firewall and i get that kind of ip.. how do you check your ip ??
what command to get the system to print out the ip ??
iC3man
10-08-2003, 07:47 AM
hmm with what command??
sorry for being such a newb.. but you gotta learn somehow :)
iC3man
10-10-2003, 06:02 AM
ehm..
ok.. got a new problem :rolleyes:
when im at the CLI:
[root@GoldStar]# vim hosts
im getting this :
127.0.0.1 www.star-light.com
~
~
~
Here the screen get's filled with the ip and the host name
all over the screen so i can't save unless i take everything of
what is the problem??..
need to use another texteditor??
thegreatorangepeel
10-10-2003, 12:51 PM
you're looking at the set of info for your "lo" device which is how the computer knows how to talk to itstelf this way you don't waste time jumping onto the net only to have to come back to your own machine.
eth0 is the set of data you want to make. If you don't have an eth0, (or eth1, eth2, etc) you don't have internet.
iC3man
10-10-2003, 12:59 PM
hmm i have tryed to ping www.planethalflife.com
and it works.. i've tryed google.com..
everything works and i can use lynx or links on the web.. i must have internet..
what do i need to do to get it fixed??.. im in a router and have the internal ip set to 127.0.0.1 and wanna host www.shazbot.com or something like that..
when i type that in the hosts file i just it just scrambles and look f*cked up..
the ip is written on 1000 lines and so on..
what is wrong ??
soleblazer
10-10-2003, 01:09 PM
maybe you should change your first post to
www.stupidwhatevercountryyouarefrom.com
Sorry, but your first post offended the hell out of me...you had to use that?
Whats worse is that you make one of your first posts that and then expect help on how to use vi?!?!
At any rate, if you cat your hosts file out, and post the output of the ping command we can probably fix this for you, its probably something really small and stupid, just like us americans....NOT
thegreatorangepeel
10-10-2003, 01:25 PM
nearly all linux boxes use 127.0.0.1 for their lo device. You need to
1.) make a new line using the IP you got from your router/dhcp server.
or
2.) make a new line with the IP assigned to your router and then, in your router's settings, forward port 80 to the IP of your linux box.
The second will give the world access to your hosted website given they know your IP and assuming your ISP allows that sort of thing.