ip to domain name

Posted on 2004-09-02
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 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:


Author Comment

ID: 11970940
normally when i buy a domain name such as the company will give me two dns. is that dns is a nameserver? because the give me 2 dns. example: and

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
Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.


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 45 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... 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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

Suggested Solutions

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…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit If you want to manage em…

856 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