LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 02-15-2008, 11:24 AM   #1
jfernandez
LQ Newbie
 
Registered: Feb 2006
Posts: 13

Rep: Reputation: 0
how to setup DNS on Fedora 8 for LAN?


Can someone point me a good tutorial of setting up the DNS server for Fedora 8?
I am currently have 3 machines in my LAN, one is Fedora (ip is 192.168.1.10) which is running apache+ssl. The other two machines are windows machines, one is a domain controller running dns and the other is the windows xp client machine.

From the windows client machine, I could go to the url like https://192.168.1.10/download/somefile.tar, but I'd like to setup the DNS server on Fedora so I could access the url using a domain name, like https://www.fake.com/download/somefile.tar. I've already generated the the certificate on Fedora for www.fake.com using openssl. I'm just not sure how to setup the DNS so I can use www.fake.com in the URL instead of its IP address.

Could someone point me a good DNS tutorial? Thanks.



JF
 
Old 02-15-2008, 11:38 AM   #2
Mr. ameya sathe
Member
 
Registered: Jul 2007
Distribution: RedHat Enterprise 5 Server Edition; Ubuntu 8.04 ; RHCE Certificate number: 805008741034103
Posts: 78
Blog Entries: 8

Rep: Reputation: Disabled
http://www.linuxquestions.org/linux/...k_File_Sharing

http://www.linuxquestions.org/linux/...Networking/DNS
 
Old 02-15-2008, 12:59 PM   #3
jdavis2
Member
 
Registered: Feb 2007
Distribution: Fedora, Mandrake, Knoppix, Windows XP
Posts: 37

Rep: Reputation: 15
I don't want you to think that I am an expert on DNS but if you are trying to access your Linux Webserver from your internal lan why don't you create a DNS record to your web server on the Windows DNS server? Or are you not using it as an internal DNS server?
 
Old 02-16-2008, 10:25 AM   #4
daveginorge
Member
 
Registered: Oct 2006
Location: Porsgrunn, Norway
Distribution: CentOS 5 / 6 / 7
Posts: 107

Rep: Reputation: 16
Things to condider here

1. Is fake.com the local domain name.
2. Is www.fake.com registered on a Public DNS server.
3. Is there access to the internet from the lan.

If the answer to all 3 is yes then:

1. You anly need to create an alias to "www" on your local dns server to the web server internal IP addess.

2. Make a Postrouting entry to your IP tables making the port 80 & 443 traffic to your web server come back into the local network rather than be sent out the gateway.

In the example below I am looking after both http & https traffic on my local lan.
10.70.70.2 is my webserver
10.70.70.1 is my gateway box

Code:
# Fix for internal webserver access
iptables -t nat -A POSTROUTING -d 10.70.70.2 -s 10.70.70.0/24 -p tcp --dport 80 -j SNAT --to-source 10.70.70.1

iptables -t nat -A POSTROUTING -d 10.70.70.2 -s 10.70.70.0/24 -p tcp --dport 443 -j SNAT --to-source 10.70.70.1
HTH

Last edited by daveginorge; 02-16-2008 at 10:29 AM.
 
Old 02-16-2008, 10:43 AM   #5
dyasny
Member
 
Registered: Dec 2007
Location: Canada
Distribution: RHEL,Fedora
Posts: 995

Rep: Reputation: 115Reputation: 115
if your windows server is the domain controller, running DNS with active directory, it is not the best idea (though possible) to remove the DNS role from it.

in the windows server it is very easy to create a A record for www.fake.com 192.168.1.10
 
Old 02-16-2008, 10:57 AM   #6
jfernandez
LQ Newbie
 
Registered: Feb 2006
Posts: 13

Original Poster
Rep: Reputation: 0
thanks for all the reply. I think I will add the record of www.fake.com (not a registered domain name) in the windows DNS server to make it working for now.

But I'm also very interested in learning how to setup the Dynamic DNS on Fedora. I need to setup a website on the Fedora later on.
 
Old 02-16-2008, 01:28 PM   #7
dyasny
Member
 
Registered: Dec 2007
Location: Canada
Distribution: RHEL,Fedora
Posts: 995

Rep: Reputation: 115Reputation: 115
register at dyndns.org or no-ip.com
download a client suitable for feodra (btw most soho routers have a built in dyndns client)
forward port 80 to your apache
 
Old 02-18-2008, 12:13 AM   #8
Lantzvillian
Member
 
Registered: Oct 2007
Location: BC, Canada
Distribution: Fedora, Debian
Posts: 210

Rep: Reputation: 41
I did a bit on this awhile ago, this might help you out for a primary, slave configuration:

http://www.orangespike.ca/?q=node/53
 
Old 02-18-2008, 12:53 AM   #9
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
It would probably be simplest to add your lan machines into Windows' machines hosts file (yes there is one in Windows just like linux). Much quicker to list 43 machines there than rune bind.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Fedora 8 Server Setup: LAMP, Email, DNS, FTP, ISPConfig LXer Syndicated Linux News 0 11-11-2007 09:50 PM
Nedd help in to setup FLZ and RLZ DNS on fedora, I am basically from windows mrajeshwarrao Linux - Server 1 11-01-2007 01:18 PM
Dynamic DNS Setup for either Fedora Core client Dimensional Linux - Networking 2 09-18-2007 05:48 AM
Setup DNS on LAN GameSky Linux - Networking 13 07-29-2007 07:27 PM
Setup of DNS with Fedora Core 4 for Email Server Hyperbolik Linux - Networking 2 05-03-2006 08:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:19 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration