Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#21440 - apache doesnt' retrieve dns, if apache was started before retrieveing dns

Attached to Project: Arch Linux
Opened by Aleksey Lashin (burgua) - Saturday, 23 October 2010, 20:19 GMT
Last edited by Andrea Scarpino (BaSh) - Sunday, 24 October 2010, 12:32 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To No-one
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

Apache doesnt' retrieve DNS entries, if Apache was started before retrieveing DNS.
Restarting or stopping server cannot help in this case.

Only after killing Apache server (killall) and starting again
Apache can retrieve DNS entries.

This bug is related to curl(php-curl), fopen(php) used in Apache environment and php.

Related links in forum:

https://bbs.archlinux.org/viewtopic.php?pid=843342
https://bbs.archlinux.org/viewtopic.php?id=78849
https://bbs.archlinux.org/viewtopic.php?id=106478
https://bbs.archlinux.org/viewtopic.php?id=74580

Additional info:

* apache = any version
* arch is up-to-date.
* This problem was very well described by "Taco Eater" in https://bbs.archlinux.org/viewtopic.php?id=74580

Steps to reproduce:

After "sudo killall httpd && sudo /etc/rc.d/httpd start" anything works.
This task depends upon

Closed by  Andrea Scarpino (BaSh)
Sunday, 24 October 2010, 12:32 GMT
Reason for closing:  Not a bug
Comment by Jan de Groot (JGC) - Sunday, 24 October 2010, 08:08 GMT
This is normal. Apache doesn't re-initialize things when you change resolv.conf.
Comment by Aleksey Lashin (burgua) - Sunday, 24 October 2010, 09:33 GMT
And also, when I change resolv.conf and restart/stop-start Apache?
Comment by Jan de Groot (JGC) - Sunday, 24 October 2010, 11:21 GMT
Restarting, where apache is completely stopped and started again should work. Often apache doesn't do all the things on restart or graceful.
If you want to make this dynamic, you should consider using nscd. nscd caches nameserver lookups and also responds to changes in configuration.
Comment by Aleksey Lashin (burgua) - Sunday, 24 October 2010, 11:34 GMT
oh, thanks )

Loading...