DNS and two subnets


 
Thread Tools Search this Thread
Special Forums IP Networking DNS and two subnets
# 1  
Old 10-13-2013
DNS and two subnets

Hi guys

I started to work in a small company which doesn't have infrastructure and I need to built it.

My problem is: I am a student with theoretical knowledge but without practical one so I don't have any ideas how to solve my problem.

I installed on CentOS 6.4 DNS and DHCP. This two worked well untill my boss told me to create two subnets. On the first subnet (192.168.1.0/32) we have out workstations and this is usually network on which our partners can connect. On subnet 10.0.0.0/32 I have servers which we need for our work.

Problem is: I don't know to set up corporate network so I can ping servers on subnet 10.0.0.0/32 from subnet 192.168.1.0/32. We don't have any fancy routers and all my servers are virtual, running inside Virtualbox.

On the same CentOS, I installed and configured DHCP and reserved addresses for all my servers, enabled routing, turned off firewall for now and add manually route on my Windows workstation. I can ping server on other subnet by IP address but not with hostname.

Please, help me.
# 2  
Old 10-23-2013
DNS is about 3 things, finding Domain servers, reverse lookup of all IPs including local, and forward lookup of hosts including local. The last part is divided into twoareas, dynamic supporting DHCP and fixed for servers. The forward and reverse domains need to be known to the parent domain. Reverse IP lookup is done using domain inaddr.arpa.IP, so in addition to servers being installed in the local domain, somehow all IPs have to be installed into inaddr.arpa.

New subnets is about configuring them on a router so they get routed to. Manual routes is a hack. Giving them reverse DNS support is also nice. But do not otherwise confuse domains and subnets. One is in the Name space, the other in IP address space. DNS lookup is hierarchical through name servers, although local overrides are possible (I once configured local DNS so aol.com was our firewall, where there was a proxy to the real AOL.) and the IP routing world, handled by routers. Now, any host with two NICs is a potential (when IP forwarding is turned on) router. Best practices is to use dedicated routers, so non-router hosts just point to the router(s) at the head of their subnet. Routing protocols or manual settings on routers establish the routes for all hosts to and from your hosts. You could use any box as a router (even if it is also a server):
  1. configure it with 2 or more NICs, for each child subnet and the parent subnet,
  2. IP Forwarding turned on and
  3. higher level router(s) as its default route
  4. set the child subnet hosts to see it as the default route,
  5. To enable routing in, either:
    • install and activate a routng protocol compatible to the parent router(s) (you can look for their packets to discover what is running) or
    • set the parent routers manually to see it as the route for your subnets.
When hosts send it traffic, it will forward to the a local subnet or up to its default.

For redundancy, my guess is that you do it twice. I suspect a host with two routes will use one until it stops working and then try the other. But there are many ways to do this, like two hosts using the same IP but only if the other is not, like a cluster.

Last edited by DGPickett; 10-23-2013 at 05:19 PM..
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Breaking out ip subnet to smaller subnets

I have a script and it works fine, but I am sure this can be shrunk down to something much better. I would appreciate someone taking a crack at it for me. What it does is take the ip block submitted and breaks it out down to /24's. #!/bin/ksh ipadd=${1} octet1=`echo $ipadd | nawk -F.... (3 Replies)
Discussion started by: numele
3 Replies

2. UNIX for Advanced & Expert Users

Rsyslog Monitoring Multiple Subnets

Hello, I have a rsyslog server configured on a server with two IP's on different Class C subnets. By default, it receives all logs from servers on these two subnets. The problem I have is that I want the Rsyslog server to monitor other subnets as well. Is there anyway to do this? I have searched... (0 Replies)
Discussion started by: mojoman
0 Replies

3. Red Hat

DHCP & DNS - Clients get IP but don't register in DNS

I am trying to setup a CentOS 6.2 server that will be doing 3 things DHCP, DNS & Samba for a very small office (2 users). The idea being this will replace a very old Win2k server. The users are all windows based clients so only the server will be Linux based. I've installed CentOS 6.2 with... (4 Replies)
Discussion started by: FireBIade
4 Replies

4. IP Networking

Freebsd Bind DNS server - multiple subnets

Hello all, I have configured Freebsd 8.1 Bind DNS as DNS server for intrenal domain and clients on one subnet 192.168.10.0/24 . What do I have to change in zone file and in in-addr.arpa zone file if I have two additional subsets 192.168.20.0/24 and 192.168.30.0/24? Do I have to create another... (0 Replies)
Discussion started by: kreno
0 Replies

5. Solaris

Jumpstart server over Multiple subnets

Hi, I need some recommendations as to how I can create a single jumpstart server over multiple subnets and what would be the best physical server for this purpose. Thanks . (1 Reply)
Discussion started by: gunnervarma
1 Replies

6. UNIX for Advanced & Expert Users

solaris zones on different subnets

Greetings, Having an issue with a multihomed global zone hosting zones on different subnets. The issue is with the dev zone that is hosted on the non-default network. Any help, other than going to exclusive IP, as I have one card for admin ntwk for both zones, would be appreciated. ... (1 Reply)
Discussion started by: 22blaze
1 Replies

7. Solaris

Solaris as router between two subnets

I have two networks which is not connected to each other. Each network has its own internet connection. I also have one Solaris machine with two NICs connected to both of the networks. How do I use the Solaris to connect both network so that hosts from either side of the network can... (9 Replies)
Discussion started by: Ahmad Pakhri
9 Replies

8. IP Networking

Routing across different subnets

I have a routing problem that I need to solve for both Windows and Linux. In our test lab, I've set up a small network that is separated from the rest of the work by a firewall. One interface is on the 15.8.152 network, the other is on the 192.168.100 network. I can already get to the... (2 Replies)
Discussion started by: thomn8r
2 Replies

9. AIX

Printing across subnets (Xerox)

All, I have a pSeries 550 and several Xerox printers I need to print to from there. I can define the printers via the Xerox "xpadmin" utility for all the machines locally (in my building, .244.xxx subnet), but if I go to a different subnet (say .131.xxx) I can not apply any changes. I can... (1 Reply)
Discussion started by: kjbaumann
1 Replies

10. UNIX for Advanced & Expert Users

communication problem between two subnets

We have two Sun Sparc systems running on the xxx.xxx.1.xxx network and can be access fine by machines on that subnet. We are able the ping one of the machines from the xxx.xxx.2.xxx network, but we are not able to ping or communicate with the other machine on the (1) subnet from the (2) subnet. ... (8 Replies)
Discussion started by: pyerj
8 Replies
Login or Register to Ask a Question