LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   how to setup DNS on Fedora 8 for LAN? (https://www.linuxquestions.org/questions/linux-networking-3/how-to-setup-dns-on-fedora-8-for-lan-621399/)

jfernandez 02-15-2008 11:24 AM

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

Mr. ameya sathe 02-15-2008 11:38 AM

http://www.linuxquestions.org/linux/...k_File_Sharing

http://www.linuxquestions.org/linux/...Networking/DNS

jdavis2 02-15-2008 12:59 PM

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?

daveginorge 02-16-2008 10:25 AM

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

dyasny 02-16-2008 10:43 AM

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

jfernandez 02-16-2008 10:57 AM

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.

dyasny 02-16-2008 01:28 PM

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

Lantzvillian 02-18-2008 12:13 AM

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

billymayday 02-18-2008 12:53 AM

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.


All times are GMT -5. The time now is 08:59 PM.