{"id":2292,"date":"2020-03-04T14:41:28","date_gmt":"2020-03-04T13:41:28","guid":{"rendered":"https:\/\/rostman.pl\/?p=2292"},"modified":"2020-03-04T14:41:28","modified_gmt":"2020-03-04T13:41:28","slug":"dns-blokowanie-odpowiedzi-dla-zewnetrznych-zapytan","status":"publish","type":"post","link":"https:\/\/rostman.eu\/index.php\/2020\/03\/04\/dns-blokowanie-odpowiedzi-dla-zewnetrznych-zapytan\/","title":{"rendered":"DNS &#8211; Blokowanie odpowiedzi dla zewn\u0119trznych zapyta\u0144"},"content":{"rendered":"<p>Dla domena i ip 192.168.32.156 b\u0119dzie to wygl\u0105da\u0142o tak:<\/p>\n<pre>Add-DnsServerClientSubnet -Name \"BlokowanePC\" -IPv4Subnet <strong><span style=\"color: #ff0000;\">192.168.32.156<\/span><\/strong>\/32 -PassThru\nAdd-DnsServerQueryResolutionPolicy -Name \"TylkoWewnetrzneZapytania\" -Action IGNORE -ClientSubnet \"EQ,BlokowanePC\" \u2013FQDN \u201cNE,*.<strong><span style=\"color: #ff0000;\">domena<\/span><\/strong>.local\u201d -PassThru<\/pre>\n<p>&nbsp;<\/p>\n<p>kasowanie:<\/p>\n<pre>Remove-DnsServerQueryResolutionPolicy -Name \"TylkoWewnetrzneZapytania\"\nRemove-DnsServerClientSubnet -Name \"BlokowanePC\"<\/pre>\n<p>&nbsp;<\/p>\n<p>Informacja, je\u015bli mamy ustawione w konfiguracji (DHCP, STATYCZNIE) 2 dns-y to jak nie dostanie odpowiedzi z pierwszego to pyta drugiego pomimo \u017ce oba dzia\u0142aj\u0105 (testowane pod Windows 7)<\/p>\n<p>\u0179r\u00f3d\u0142o: <a href=\"https:\/\/serverfault.com\/questions\/916165\/configure-dns-policy-to-only-handle-internal-zone-for-one-client\">https:\/\/serverfault.com\/questions\/916165\/configure-dns-policy-to-only-handle-internal-zone-for-one-client<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Dla domena i ip 192.168.32.156 b\u0119dzie to wygl\u0105da\u0142o tak: Add-DnsServerClientSubnet -Name &#8222;BlokowanePC&#8221; -IPv4Subnet 192.168.32.156\/32 -PassThru Add-DnsServerQueryResolutionPolicy -Name &#8222;TylkoWewnetrzneZapytania&#8221; -Action IGNORE -ClientSubnet &#8222;EQ,BlokowanePC&#8221; \u2013FQDN \u201cNE,*.domena.local\u201d -PassThru &nbsp; kasowanie: Remove-DnsServerQueryResolutionPolicy -Name &#8222;TylkoWewnetrzneZapytania&#8221; Remove-DnsServerClientSubnet -Name &#8222;BlokowanePC&#8221; &nbsp; Informacja, je\u015bli mamy ustawione w konfiguracji (DHCP, STATYCZNIE) 2 dns-y to jak nie dostanie odpowiedzi z pierwszego to pyta drugiego pomimo [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[146,45],"_links":{"self":[{"href":"https:\/\/rostman.eu\/index.php\/wp-json\/wp\/v2\/posts\/2292"}],"collection":[{"href":"https:\/\/rostman.eu\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/rostman.eu\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/rostman.eu\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/rostman.eu\/index.php\/wp-json\/wp\/v2\/comments?post=2292"}],"version-history":[{"count":0,"href":"https:\/\/rostman.eu\/index.php\/wp-json\/wp\/v2\/posts\/2292\/revisions"}],"wp:attachment":[{"href":"https:\/\/rostman.eu\/index.php\/wp-json\/wp\/v2\/media?parent=2292"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rostman.eu\/index.php\/wp-json\/wp\/v2\/categories?post=2292"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rostman.eu\/index.php\/wp-json\/wp\/v2\/tags?post=2292"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}