Free Downloads, Community Forum,
FAQs and Developer Resources


Make /Tools Your Home | Link to us

Today's posts | Posts since last visit | Most Active Topics

All Forums Register Login Search Subscriptions My Profile Inbox
Tool Warehouse FAQs Resources Help Member List Address Book Logout

RE: DHCP and resolv.conf

 
Logged in as: Guest
Users viewing this topic: none
  Printable Version
All Forums >> [SFU / Interix / SUA Technology] >> Tools Discussion Forum >> RE: DHCP and resolv.conf Page: <<   < prev  1 [2]
Login
Message << Older Topic   Newer Topic >>
RE: DHCP and resolv.conf - Apr. 14, '05, 5:41:47 AM   
Rodney

 

Posts: 2949
Joined: Jul. 9, '02,
From: /Tools lab
Status: offline
ah-ha!
thanks for the information.
I will make some adjustments later today and then post a new binary.

(in reply to cortez_)
Post #: 21
RE: DHCP and resolv.conf - Apr. 14, '05, 3:34:48 PM   
Rodney

 

Posts: 2949
Joined: Jul. 9, '02,
From: /Tools lab
Status: offline
This makes it easier to understand. Thanks for the information.

I've placed a new version of testioctl on the ftp site.
Could you try it please ? Thanks.

If it works (fingers crossed ) then I'll update several packages.
(Along with a fully working pkg_update).

(in reply to cortez_)
Post #: 22
RE: DHCP and resolv.conf - Apr. 15, '05, 2:12:55 AM   
cortez_

 

Posts: 330
Joined: Mar. 27, '04,
From: Poland
Status: offline
Doesn't work, that's weird. I hope I got the nev version - it was dated 14.04.2005 and returns exactly the same result as the previous one.

(in reply to Rodney)
Post #: 23
RE: DHCP and resolv.conf - Apr. 15, '05, 2:26:51 AM   
Rodney

 

Posts: 2949
Joined: Jul. 9, '02,
From: /Tools lab
Status: offline
??? Very odd that it didn't work. I turned on DHCP on a machine here to check it out.

mmmm, I think I can suspect what is happening.
On the machine here that I turned it on the registry put a key in "EnableDHCP" which
flags if DHCP is being used. I used that to decide between using, for example, "Domain"
and "DhcpDomain". I'd assumed that this was in your registry as well and you had not
included it to keep the text minimal. But I guessing my assumption was wrong. On your
machine you don't have the "EnableDHCP" in your registry for ...\{9F54FF96-69E3-4BE3-A909-6A734B1B9681}.

Is this correction in my thinking right?

(in reply to cortez_)
Post #: 24
RE: DHCP and resolv.conf - Apr. 15, '05, 5:44:51 AM   
cortez_

 

Posts: 330
Joined: Mar. 27, '04,
From: Poland
Status: offline
I'm not 100% sure, I've sent you by e-mail a complete dump of the registry keys for the HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\ I hope that helps.

(in reply to Rodney)
Post #: 25
RE: DHCP and resolv.conf - Apr. 15, '05, 11:07:27 AM   
Rodney

 

Posts: 2949
Joined: Jul. 9, '02,
From: /Tools lab
Status: offline
Thanks.
To which e-mail did you send it?

(in reply to cortez_)
Post #: 26
RE: DHCP and resolv.conf - Apr. 15, '05, 6:30:53 PM   
cortez_

 

Posts: 330
Joined: Mar. 27, '04,
From: Poland
Status: offline
To the one which appears in your profile on the forum...

(in reply to Rodney)
Post #: 27
RE: DHCP and resolv.conf - Apr. 15, '05, 10:29:55 PM   
Rodney

 

Posts: 2949
Joined: Jul. 9, '02,
From: /Tools lab
Status: offline
I never got it. Could you try again to <rodney@interopsystems.com> please. thanks.

(in reply to cortez_)
Post #: 28
RE: DHCP and resolv.conf - Apr. 15, '05, 10:41:43 PM   
Rodney

 

Posts: 2949
Joined: Jul. 9, '02,
From: /Tools lab
Status: offline
Ah, I found it. For some reason it got filtered as junk mail.

(in reply to Rodney)
Post #: 29
RE: DHCP and resolv.conf - Apr. 16, '05, 1:52:49 AM   
Rodney

 

Posts: 2949
Joined: Jul. 9, '02,
From: /Tools lab
Status: offline
Whoever at MS decided what goes in the registry (and doesn't) for DNS information deserves a good wack with a wet noodle.
Then the "bright bulb" who decided that the way the info should be returned from the registry be different depending on
which version of Windows is run (2000, XP, etc.) deserves the 5 Watt award.
*end rant*

The "search" coming back as an empty string counts as expected. So no changes needed there.
There's a ruleset with BIND that specifically handles when no search is given and domain is set.
For "domain" I've made one adjustment to the code. So it should be better this next round.
For "nameserver"... okay, I see it.

I think that should do it.
So there's yet another copy of testioctl if you could try it.
More detailed debugging this time than last time just in case.

< Message edited by Rodney -- Apr. 16, '05, 1:56:31 AM >

(in reply to Rodney)
Post #: 30
RE: DHCP and resolv.conf - Apr. 18, '05, 1:54:09 AM   
cortez_

 

Posts: 330
Joined: Mar. 27, '04,
From: Poland
Status: offline
The result of running the updated testioctl is here:
gprzybylski /interix_utils/devel#>./testioctl
        I/F={8C5D426B-E6B4-4819-A8DD-3B6F5CA8AE27}=, dhcp=1
        found=0, ==
SIOCGIFNS: No such file or directory
search==""
domain=="teatralne.comarch"
gprzybylski /interix_utils/devel#>

(in reply to Rodney)
Post #: 31
RE: DHCP and resolv.conf - Apr. 18, '05, 12:27:08 PM   
Rodney

 

Posts: 2949
Joined: Jul. 9, '02,
From: /Tools lab
Status: offline
Well, that's an improvement.
It should have also used your second NIC information to get the NS... oh, *cough* silly mistake *cough* fixed.

I'll relink openssh and ftp with this and post these as new versions.

(in reply to cortez_)
Post #: 32
RE: DHCP and resolv.conf - Apr. 19, '05, 2:43:21 AM   
cortez_

 

Posts: 330
Joined: Mar. 27, '04,
From: Poland
Status: offline
I'm afraid we've hurried up too much, After installing the new updated openssh and commenting out the nameserver in the /etc/resolv.conf the "Temporary failure" nightmare appeared up again...

And by the way, there is only one NIC on the machine where the register dump comes from, I don't know what did windows put in the registry but there's only ine NIC for sure.
(The two NIC's machine is the other one)

(in reply to Rodney)
Post #: 33
RE: DHCP and resolv.conf - Apr. 20, '05, 1:26:39 AM   
Rodney

 

Posts: 2949
Joined: Jul. 9, '02,
From: /Tools lab
Status: offline
I found the difficulty and have fixed it.
The ioctl() calls were working fine (that was the test code).
The BIND code needed a change for the ioctl() changes (an extra compare).
So everything is relinked now: openssh, ftp, wget and pkg.

(in reply to cortez_)
Post #: 34
RE: DHCP and resolv.conf - Apr. 20, '05, 11:11:49 AM   
cortez_

 

Posts: 330
Joined: Mar. 27, '04,
From: Poland
Status: offline
So there are newer versions of these utils downloadable? BTW, why not dynamically link them with bind?

(in reply to Rodney)
Post #: 35
RE: DHCP and resolv.conf - Apr. 20, '05, 12:07:41 PM   
Rodney

 

Posts: 2949
Joined: Jul. 9, '02,
From: /Tools lab
Status: offline
> So there are newer versions of these utils downloadable?

Yes.

> BTW, why not dynamically link them with bind?

With the static link I know for sure which API's are being used.
Understand that many of the API's (by name) that are in BIND are also in
a few other libraries that ship with Interix.

In the longer term I will likely make a shared library version (DSO) of BIND.
But I need to get the "ducks lined up" before doing this. Switching OpenSSL
to have a shared library caused some roughness to appear with some applications.
I do make mistakes, but I do want to try and minimize my repeating them .

(in reply to cortez_)
Post #: 36
RE: DHCP and resolv.conf - Apr. 21, '05, 2:45:49 AM   
cortez_

 

Posts: 330
Joined: Mar. 27, '04,
From: Poland
Status: offline
OK, after my test the ssh works fine, I assume thet the other tools too. There is also another tool that is sensitive to the mess with /etc/resolv.conf is the nslookup tool

(in reply to Rodney)
Post #: 37
RE: DHCP and resolv.conf - Apr. 21, '05, 3:07:40 AM   
Rodney

 

Posts: 2949
Joined: Jul. 9, '02,
From: /Tools lab
Status: offline
> ... is the nslookup tool

Yes, plus dig & host too.
Though if you are running DNS (e.g. named) on the local machine (127.0.0.1) things will be fine.
But the "big utilities" first (ssh, ftp, ...) because they are used/downloaded so much more.

(in reply to cortez_)
Post #: 38
RE: DHCP and resolv.conf - Apr. 22, '05, 2:47:30 PM   
Rodney

 

Posts: 2949
Joined: Jul. 9, '02,
From: /Tools lab
Status: offline
> > ... is the nslookup tool
>
>Yes, plus dig & host too.

I started looking at this to discover, as a surprise, that these utilities don't use
the BIND library to read /etc/resolv.conf. They parse /etc/resolv.conf themselves!
Which explains a number of things about these utilities.

< Message edited by Rodney -- Apr. 22, '05, 3:55:09 PM >

(in reply to Rodney)
Post #: 39
RE: DHCP and resolv.conf - Apr. 22, '05, 3:58:31 PM   
Rodney

 

Posts: 2949
Joined: Jul. 9, '02,
From: /Tools lab
Status: offline
Okay, headrev of BIND which includes new [n]nslookup, host and dig
get nameserver, search and domain information the the same as res_init(3) now
(the extended ioctl()'s) when /etc/resolv.conf is hosed.

(in reply to Rodney)
Post #: 40
Page:   <<   < prev  1 [2]
All Forums >> [SFU / Interix / SUA Technology] >> Tools Discussion Forum >> RE: DHCP and resolv.conf Page: <<   < prev  1 [2]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts


Search All Forums -

Advanced search


SPONSORS



Forum Software © ASPPlayground.NET Advanced Edition 2.5 ANSI

0.078