News:

Rule #1 - Be Patient - Rule #2 - Don't ask when, if you don't contribute - Rule #3 - You have coding skills - LinuxMCE's small brother is available: http://www.agocontrol.com

Main Menu

DNS inconsistencies, input sought.

Started by mkbrown69, January 09, 2014, 04:10:59 AM

Previous topic - Next topic

mkbrown69

Hi Folks!

Being a sysadmin type, I'm now trying to work my way through various sysadmin type Trac issues.  I just patched a NIS issue (Thanks Phenigma for committing it!), and now I'm currently working on a DNS related one.  I'm doing the relevant patches against 10.04, and will diff against 12.04 as well (I'm currently running 10.04, and plan to do an in-place upgrade).

http://svn.linuxmce.org/trac/ticket/1769

Some of this is easy to fix, but some needs some input.  Three scripts actually backup and manage aspects of resolv.conf on the core (trunk/src):
BootScripts/Network_DNS.sh
BootScripts/Network_Parameters.sh
BootScripts/Network_Setup.sh

Would it not be better/easier to maintain if only one script managed that resolv.conf file?  I may be missing out on why it is the way it is, so I thought I'd put it out there for those more knowledgable about LMCE internals to comment...

Thanks for your time!

/Mike

tschak909

Thanks so much, for working on this!

I would guess compartmentalization, but feel free to dig around to see where these scripts are called, and why. If it can be simplified, by all means, throw in a patch and we can test.

(The reason I put such emphasis on studying what is already there, is to understand the intended feature set, and to avoid regressions while simplifying or refactoring code.)

-Thom

mkbrown69

Thom,

Will do.  I try to understand how things work and why, before I dive in (which means things take a while ;-). I'll look into the resolv.conf stuff shortly.  I've submitted patches for 12.04 (which I'm now running) against ticket 1769 which should fix the local DNS updates from dhcpd. 

HTH!

/Mike

tschak909


phenigma

I'll have a look at getting these committed this weekend.  Thanks  mkbrown69!  J.

Sent from my SGH-I927 using Tapatalk
My setup: [url="http://wiki.linuxmce.org/index.php/User:Phenigma"]http://wiki.linuxmce.org/index.php/User:Phenigma[/url]