LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 03-28-2017, 12:34 AM   #1
des_a
Senior Member
 
Registered: Sep 2006
Posts: 1,416
Blog Entries: 43

Rep: Reputation: 36
Moving a DNS Subnet


I am trying to move a DNS subnet, using webmin on Mandriva Linux 2010.1 (I know it's old). More information here: https://forums.techguy.org/threads/m...ubnet.1187054/. Please help.
 
Old 03-29-2017, 11:37 AM   #2
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS,Manjaro
Posts: 5,640

Rep: Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697
Quote:
Originally Posted by des_a View Post
I am trying to move a DNS subnet, using webmin on Mandriva Linux 2010.1 (I know it's old). More information here: https://forums.techguy.org/threads/m...ubnet.1187054/. Please help.
I have done something like this, but from the command line not using webmin.

The way I have done something like this using webmin was to add the new domain, manually add the host names and addresses, gradually migrate usage to the new domain, then retire the old one. I know of no automated way to do the migration, though someone else may.
 
Old 03-29-2017, 11:41 AM   #3
des_a
Senior Member
 
Registered: Sep 2006
Posts: 1,416

Original Poster
Blog Entries: 43

Rep: Reputation: 36
If it's not too late to do it that way then, how do you do it from the command line? Right now, when I tried to do it the best I knew how via webmin, now nothing resolves, not even on the server itself, and it can't find it in DNS if I look it up without ping either, not even on the server itself.

As long as the changes will show up in webmin, I don't care if I do it from the command line or not...
 
Old 03-29-2017, 12:45 PM   #4
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS,Manjaro
Posts: 5,640

Rep: Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697
Quote:
Originally Posted by des_a View Post
If it's not too late to do it that way then, how do you do it from the command line? Right now, when I tried to do it the best I knew how via webmin, now nothing resolves, not even on the server itself, and it can't find it in DNS if I look it up without ping either, not even on the server itself.

As long as the changes will show up in webmin, I don't care if I do it from the command line or not...
You could Google for that and find several dozen examples, I believe, but first we need to get it back into working order using the OLD domain.
I suppose it is too much to expect that you took a couple of backups before you started? If not, please remember that for next time. If yo did, can you restore form the most recent backup?

If yo have no backups: What exactly did you do in webmin? Not just what you think broke things, but what you really did. We need to figure out what consequences may have obtained on the file system to determine what we need to get back.
 
Old 03-29-2017, 03:12 PM   #5
des_a
Senior Member
 
Registered: Sep 2006
Posts: 1,416

Original Poster
Blog Entries: 43

Rep: Reputation: 36
I believe what I did was leave everything the same, and manually change all the IP addresses to the new subnet in my zone. Then saved and reloaded. I believe it loaded with errors and I tried to fix them then. I don't remember what those errors were.
 
Old 03-29-2017, 03:13 PM   #6
des_a
Senior Member
 
Registered: Sep 2006
Posts: 1,416

Original Poster
Blog Entries: 43

Rep: Reputation: 36
If I can't figure out for sure what I did, I may have to start from scratch. No backups were made. I wasn't that smart about it. The network is working, but names do not resolve.
 
Old 03-29-2017, 03:14 PM   #7
des_a
Senior Member
 
Registered: Sep 2006
Posts: 1,416

Original Poster
Blog Entries: 43

Rep: Reputation: 36
I never thought to try from the command line, but why not? I should've assumed that it could be done. I believe I did try to Google the general idea of what I wanted to do, and turned up with no useful results.
 
Old 03-29-2017, 03:15 PM   #8
des_a
Senior Member
 
Registered: Sep 2006
Posts: 1,416

Original Poster
Blog Entries: 43

Rep: Reputation: 36
I would make a backup before redoing everything, if that's what I had to do. My whole IP structure is pretty disorganized by this point, but since it functions okay, I was going to leave it the way it was until I got other things working.
 
Old 03-29-2017, 03:23 PM   #9
des_a
Senior Member
 
Registered: Sep 2006
Posts: 1,416

Original Poster
Blog Entries: 43

Rep: Reputation: 36
This is what I came up with when I Googled: https://www.google.com/search?q=move...&bih=652#spf=1
 
Old 03-30-2017, 12:00 PM   #10
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS,Manjaro
Posts: 5,640

Rep: Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697
OK, with no backups, no urgency, and no record of the steps you took, it may be best to just start clean.

1. how many nodes have you in your current network?
2. have you used DHCP in your local network?
3. are you at all familiar with dnsmasq? (It can replace bind for a SMALL network, does caching DNS for efficiency, and can optionally act as a DHCP server.)

One option you have is to clear the bind tables and start over using bind and webmin. This could be the best option.
Another is to move to dnsmasq. It does not require elaborate tables:loads initial tables from your local hosts file, automatically loads DHCP client records into the DNS tables in memory, is smaller and very efficient, and can be configured by editing the conf file. There was a WebMin module for it, but it was orphaned the last I knew and I am not sure if there is a current one.

There IS a WEB GUI for dnsmasq. Although I have not used it, some swear by it.
 
Old 03-30-2017, 08:04 PM   #11
des_a
Senior Member
 
Registered: Sep 2006
Posts: 1,416

Original Poster
Blog Entries: 43

Rep: Reputation: 36
OK. Thanks anyway. I'll start clean. I'll use webmin and my printer to save the values I began with, and then delete them in the easiest way. I'll generate my new DNS server the same way I did before. I think that just regenerating it will automatically wipe what I don't need.

I first use drakwizard, and then I use webmin to finish the job. I'll just make sure I save it first. My configuration can be found using my router's DHCP entries. Yes, I use DHCP. The bummer is going to be all the CNAMES. But that is why it will be important to print it first. Thanks. Since there's nothing more you can do, marking as solved.
 
Old 05-01-2017, 12:22 AM   #12
des_a
Senior Member
 
Registered: Sep 2006
Posts: 1,416

Original Poster
Blog Entries: 43

Rep: Reputation: 36
Well, starting from scratch was exactly what I did. I saved it, (See: http://www.linuxquestions.org/questi...43#post5695843). Now my problem is that everything will resolve from the server whether I do it locally or not. However, it won't resolve from the clients. The problem is that mainrouter (one of the CNAMES that won't resolve!), is not getting the update proper from the server to serve it to the rest of the clients. It's not getting CNAMES is all. Maybe the equivelant of a /flushdns command or something? I have ran /flushdns from my clients with still no success.
 
Old 05-01-2017, 07:29 AM   #13
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,662
Blog Entries: 4

Rep: Reputation: 3942Reputation: 3942Reputation: 3942Reputation: 3942Reputation: 3942Reputation: 3942Reputation: 3942Reputation: 3942Reputation: 3942Reputation: 3942Reputation: 3942
I suggest that you "dive beneath the covers" of this webby-thingy and see what it actually did. Find the DNS daemon and find its configuration file, probably in /etc.

Look for any technical description on the web about "how the damned thing works."

Then, fix it.
 
Old 05-02-2017, 07:55 PM   #14
des_a
Senior Member
 
Registered: Sep 2006
Posts: 1,416

Original Poster
Blog Entries: 43

Rep: Reputation: 36
So I modified the db file directly, and still have the same problem. Now, when I ping from the server, it will ping fine. When I ping from the client running Windows, it will not find the name. It seems to find all the names, except for some of the CNAMES do not return the domain name portion of the server name and only the hostname portion. I have already tried to google it, and I haven't found what I'm looking for, but sometimes I'm not as good as googling things like this as I would like to be. I'll try two more things, and check in, but just in case they don't work, I'm updating you here. I'll try rebooting the server, to see if that helps, and then I could flush the DNS cache on the Windows client. I have tried multiple times rebooting the router, and although at some point part of it "fixed itself" over time, the whole thing has not. So I'll try to do those two things and see if that helps.
 
Old 05-02-2017, 08:26 PM   #15
des_a
Senior Member
 
Registered: Sep 2006
Posts: 1,416

Original Poster
Blog Entries: 43

Rep: Reputation: 36
Still no dice.
 
  


Reply



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
DNS-Bind8 - two subnet raydha Linux - Server 6 10-16-2012 04:13 AM
Disable StrictHostKeyChecking for a DHCP and DNS-using subnet AlucardZero Linux - Security 10 12-30-2010 11:19 AM
DNS Server not reachable from different subnet intermittently baps123 Linux - Server 4 08-28-2010 07:17 AM
how to forward reverse dns subnet saiyen2002 Linux - Networking 1 03-25-2010 11:55 AM
DNS Problem in subnet with NAT soroka2000 Linux - Networking 8 11-15-2006 04:40 AM

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

All times are GMT -5. The time now is 02:45 PM.

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