Link to home
Start Free TrialLog in
Avatar of lilie795
lilie795

asked on

ip to domain name

i just install a fedora core 1. i have succesfully configure a router with 4 NIC. each NIC is connected to the pc for webserver, ftp server, vpn server, mail server. i have a static ip where i get it from my isp. ( all ip are just sample )

static ip from isp: 60.1.2.3, netmask: 255.255.255.252, first dns: 11.11.11.11 second dns: 22.22.22.22

1) let say my eth0 which connected to xdsl modem. so i configure like this:

ip 60.1.2.4
netmask 255.255.255.252
1st. dns: 11.11.11.11
2nd dns: 22.22.22.22
gateway:60.1.2.3
( is it my configuration correct? is my ip on eth0 must be add one more digit than the static ip that isp give me?).

2) i can get thru from external to get in into my ftp server. but i have to type the ip number which hard to remember. what else do i need to do to make my name as fc.abc.com?...what are the step do i need to follow?...i heard about dns and bind...what is that?...i installed both of them in my fedora but haven't configure yet...


Avatar of ramazanyich
ramazanyich
Flag of Belgium image

check your /etc/resolv.conf
It should be two lines according to your config:
nameserver 11.11.11.11
nameserver 22.22.22.22

If they don't exists add that lines.
Of course on that DNS server should run on specified servers. You can check it by calling:
nslookup www.sun.com 11.11.11.11

Avatar of lilie795
lilie795

ASKER

normally when i buy a domain name such as www.mydomain.com the company will give me two dns. is that dns is a nameserver? because the give me 2 dns. example: ns1.mydomain.com and ns2.mydomain.com.

by adding the nameserver/dns which the domain hosting gave me, so i can redirect all web, ftp, and others to my fedora core pc?

is i need to do others thing?

thanks
yes that two dnses are nameserver
Ummm, no this isn't correct.  The subnet mask allows for 2 IPAddresses.  60.1.2.4 Is not on the same subnet as the 60.1.2.3 address and is actually the network address for the next higher subnet.  The only allowable addresses for this subnet would be 60.1.2.1 and 60.1.2.2.  60.1.2.0 is the network address and 60.1.2.3 is the broadcast.
Think binary for a moment after all an IPAddress is a 32 bit (binary) number devided into 4 octets but printed for ease of viewing as a decimal.

11111100 = subnet mask (252)
00000000 = network (0)
00000011 = broadcast (3)
00000001 = beginning range (1)
00000010 = ending randge (2)
00000100 = different subnet (4)
ASKER CERTIFIED SOLUTION
Avatar of jonnietexas
jonnietexas

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
i try first
tq