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 |
|
Login  |
|
|
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.
|
|
|
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.
|
|
|
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?
|
|
|
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.
|
|
|
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?
|
|
|
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...
|
|
|
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.
|
|
|
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.
|
|
|
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 >
|
|
|
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#>
|
|
|
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.
|
|
|
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)
|
|
|
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.
|
|
|
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?
|
|
|
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
|
|
|
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.
|
|
|
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 >
|
|
|
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.
|
|
|
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 |
|
|
|