Deprecated: Return type of Requests_Cookie_Jar::offsetExists($key) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /www/webvol14/so/emm9jypq7227iqw/linuxkitchen.com/public_html/wp-includes/Requests/Cookie/Jar.php on line 63

Deprecated: Return type of Requests_Cookie_Jar::offsetGet($key) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /www/webvol14/so/emm9jypq7227iqw/linuxkitchen.com/public_html/wp-includes/Requests/Cookie/Jar.php on line 73

Deprecated: Return type of Requests_Cookie_Jar::offsetSet($key, $value) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /www/webvol14/so/emm9jypq7227iqw/linuxkitchen.com/public_html/wp-includes/Requests/Cookie/Jar.php on line 89

Deprecated: Return type of Requests_Cookie_Jar::offsetUnset($key) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /www/webvol14/so/emm9jypq7227iqw/linuxkitchen.com/public_html/wp-includes/Requests/Cookie/Jar.php on line 102

Deprecated: Return type of Requests_Cookie_Jar::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /www/webvol14/so/emm9jypq7227iqw/linuxkitchen.com/public_html/wp-includes/Requests/Cookie/Jar.php on line 111

Deprecated: Return type of Requests_Utility_CaseInsensitiveDictionary::offsetExists($key) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /www/webvol14/so/emm9jypq7227iqw/linuxkitchen.com/public_html/wp-includes/Requests/Utility/CaseInsensitiveDictionary.php on line 40

Deprecated: Return type of Requests_Utility_CaseInsensitiveDictionary::offsetGet($key) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /www/webvol14/so/emm9jypq7227iqw/linuxkitchen.com/public_html/wp-includes/Requests/Utility/CaseInsensitiveDictionary.php on line 51

Deprecated: Return type of Requests_Utility_CaseInsensitiveDictionary::offsetSet($key, $value) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /www/webvol14/so/emm9jypq7227iqw/linuxkitchen.com/public_html/wp-includes/Requests/Utility/CaseInsensitiveDictionary.php on line 68

Deprecated: Return type of Requests_Utility_CaseInsensitiveDictionary::offsetUnset($key) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /www/webvol14/so/emm9jypq7227iqw/linuxkitchen.com/public_html/wp-includes/Requests/Utility/CaseInsensitiveDictionary.php on line 82

Deprecated: Return type of Requests_Utility_CaseInsensitiveDictionary::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /www/webvol14/so/emm9jypq7227iqw/linuxkitchen.com/public_html/wp-includes/Requests/Utility/CaseInsensitiveDictionary.php on line 91
DNS server – Linux, Windows, Heklanje, Kuhinja

DNS server

Byvelda

Jun 20, 2013 ,

Da bi proxy serveri radili kako treba, nužno je da su u stanju da razlučuju imena u IP adrese, a za to im trebaju DNS serveri.
Kako podići DNS server – rezolver/kešer (pošto neće držati nikakvu zonu na sebi) na CentOS 6U4 serveru : uputstvo
Koji su paketi potrebni :
bind, bind-utils, caching-nameserver (koji je obično sadržan u predhodna dva)
Glavni konfiguracioni fajl :
/etc/named.conf
(On je direktno vezan sa fajlom /var/named/chroot/etc/named.conf, promena u jednom se odmah reflektuje u drugi)
Provera sintakse fajla :
# named-checkconf named.conf
# named-checkconf /etc/named.rfc1912.zones
Ovo se može raditi za svaki fajl zone.
Fajl named.ca sadrži spiskove root DNS servera.

Ako vam se desi da vam se DNS odaziva samo na adresi 127.0.0.1, trba baciti pogled na /etc/named.conf fajl, i proveriti sledeće :
options {
listen-on port 53 { 127.0.0.1;vaša-IP-adresa; };
ILI
listen-on { any; };
…..
Posle ovoga restartovati Bind.

Podesiti fajl /etc/resolv.conf :
search moj.domen
nameserver 127.0.0.1
nameserver 10.10.10.36

Testiranje :
1. Da li vam prolazi port 53 po TCP protokolu na Internet :
# telnet 8.8.8.8 53
Trying 8.8.8.8…
Connected to 8.8.8.8.
Escape character is ‘^]’.
Connection closed by foreign host.
2. Ako se u /var/log/messages nađe ovakva greška :
Jun 20 14:31:32 server80 named-sdb[2222]: error (network unreachable) resolving ns2.nic.uk/AAAA/IN’: 2a01:40:1001:35::2#53
Treba isključiti IPv6 pri podizanju Bind-a. To se radi u fajlu /etc/sysconfig/named u koj se na kraju doda linija :
OPTIONS=”-4″

By velda