ip to domain name

Posted on 2004-09-02
Medium Priority
Last Modified: 2010-03-18
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:, netmask:, first dns: second dns:

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

1st. dns:
2nd dns:
( 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...

Question by:lilie795
  • 3
  • 2
  • 2
LVL 19

Expert Comment

ID: 11970634
check your /etc/resolv.conf
It should be two lines according to your config:

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


Author Comment

ID: 11970940
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?

LVL 19

Expert Comment

ID: 11971578
yes that two dnses are nameserver
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!


Expert Comment

ID: 11983067
Ummm, no this isn't correct.  The subnet mask allows for 2 IPAddresses. Is not on the same subnet as the address and is actually the network address for the next higher subnet.  The only allowable addresses for this subnet would be and is the network address and 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)

Accepted Solution

jonnietexas earned 180 total points
ID: 11983086
OK.  I just got the IP is a samle comment.  Let me add this.  Whatever your isp gives you is what your eth0 should be.  What you do with the other three NICs is your business.  Most people will use a 192.168.x.x or a 10.128.x.x with a reasonable subnet mask for your environment.  If I were you I would create...
each with a subnet mask.  This will allow 253 hosts per subnet.  

Make the interface for each subnet a .1 address.  So...

eth0 =
eth1 =
eth2 =
eth3 =

All PC's on each subnet would have their default gateway = to their respective network card's IP address on the server.

Install BIND (DNS).  Set it up to be a frowarding DNS.  This will allow you to accespt internal DNS requests and the forward your external requests to the 11.11.11...blahblah.  In this case you will set your /etc/resolve.conf to have as the dns.  Then your linux box will run named and use a forward lookup of the IPAddresses that the ISP gave you.  

Look at the man pages for named.conf.  There are a lot of websites that will walk you through a bind setup...

http://www.crazysquirrel.com/linux/dns.php is one.  

For external DNS you can use the service from your ISP or domain register service to create an "A" record or you can have them point to the address for the DNS request.  It will be a bit more involved but not aweful.  

Author Comment

ID: 12002045
i try first

Author Comment

ID: 12037518

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
SQL Database Recovery Software repairs the MDF & NDF Files, corrupted due to hardware related issues or software related errors. Provides preview of recovered database objects and allows saving in either MSSQL, CSV, HTML or XLS format. Ensures recov…
Suggested Courses

609 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question