LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Dns (https://www.linuxquestions.org/questions/linux-networking-3/dns-58957/)

jmono 05-09-2003 05:26 PM

Dns
 
maybe is a newbie question but i donīt know

how can i set up a DNS for my ip adress??

david_ross 05-09-2003 05:29 PM

You will need to find (then pay) a registrar to register your chosen domain then get them to alter the DNS record to point to your ip.

Alternatively - if you want a free subdomain try one of these:
http://www.myserver.org/
http://www.dns2go.com/
http://www.no-ip.com/

There are plenty more but these offer good free services.

jmono 05-09-2003 06:10 PM

well... thanks
but i need a DNS for a private IP
i donīt want to pay!!
i need to enter to my localhost using some adress

david_ross 05-09-2003 06:13 PM

I thik you better look into using hosts files or setting up a DNS server. If you only have a few PCs it would be much simpler to use hosts files and just amend them on each PC.

david_ross 05-09-2003 06:14 PM

PS - one of the free services would work but you would need to be connected to the net in order to resolve the ip.

jmono 05-09-2003 06:32 PM

the ip adress of my eth0 is 192.168.0.1
and i need to access to it through a domain like www.mono.com

can i do that???

Satriani 05-09-2003 06:38 PM

Do you just want it to be accessible through your private network, or do you want the entire world to see the www.mono.com ???

If the first case: setup a DNS server or edit /etc/hosts will do the trick,
if the second is the case: you will need to have two (three) things:
A public IP address, and a domainname registrar. (and maybe a firewall with NATTING, (translates your external (public) Ip adress to your internal one: 192.168.0.1)

Hope this makes it clear....

david_ross 05-09-2003 06:38 PM

"Officially" you would need to register www.mono.com and have a registrar point www.mono.com to your ip address but if you place:
Code:

192.168.0.1        www.mono.com
in the hosts file of every computer that would need access to www.mono.com then you don't need to pay a penny.

If you have a large network (100+ PCs) you would probably be better off installing a DNS server to save on maintainance.

jmono 05-09-2003 06:43 PM

it is a private network
i will take a look to the /etc/hosts

jmono 05-09-2003 06:45 PM

hey i cannot find any /etc/hosts directory

maybe this /etc/httpd/conf/vhosts

david_ross 05-09-2003 06:48 PM

Nope - but there is a "file" called /etc/hosts

You will need to be root to edit it.

If it aint there (highly unlikely) just create it.

jmono 05-16-2003 08:17 AM

Quote:

Originally posted by jmono
hey i cannot find any /etc/hosts directory

maybe this /etc/httpd/conf/vhosts

ok
but how do i create it??

jmono 05-16-2003 08:19 AM

sorry... my mistake
i donīt wanna quote my own message

i need to create the file /etc/hosts

but how???

jmono 05-16-2003 02:59 PM

well..
i already made the DNS service for my private network

but now i need to view my machine from another computer
and when i try to access to it, it doesnīt try to find it throught the private network, it just look for it in internet


All times are GMT -5. The time now is 11:05 PM.