DNS - Server 2003

asko

Fizikalc
22. jul 2007
2.565
3
38
BI prosil za malček pomoči pri nastavitah DNS-ja.

Rad bi na DNS blokiral določene strani: npr 24ur.com, da bi kazalo na 127.0.0.1. Kako se tega lotiti ?

cry12bpy.gif
 

Clueless

Fizikalc
5. avg 2007
745
86
28
Naredi novo forward lookup zono za 24ur.com in v njej nov host record (ime pustiš prazno) s tem IP-jem. Lahko pa tudi npr. domain alias na recimo nek lokalen site s stranjo, ki nadebudnemu surferju razloži, da naj gre raje kaj bolj pametnega delat.
smile-1.gif
 

KLuka

Fizikalc
7. sep 2007
1.710
0
36
v mapi C:\Windows\System32\drivers\etc editiraj hosts file s notepadom:

# Copyright (c) 1993-2009 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
#
# For example:
#
# 102.54.94.97 rhino.acme.com # source server
# 38.25.63.10 x.acme.com # x client host

# localhost name resolution is handled within DNS itself.
127.0.0.1 www.24ur.com
# ::1 localhost
 

Roberto

Majstr
19. jul 2007
12.057
154
63
Doma
Tole kar ti predlagaš je vsaj butasto, če ne nevarno... Localhost mora bitidefiniran na tem IPju, ker avtor govori o strežniku domnevam da ima tudi domeno in posledično DNS. V DNSju pa lahko narediš tak zapis...
 

KLuka

Fizikalc
7. sep 2007
1.710
0
36
smile-1.gif
aja ? sem mislu da rabi samo za eno mašino
sej imaš localhost tudi naštiman da kaže na 127.0.0.1

127.0.0.1 localhost
127.0.0.1 24ur.com

jest sm to že večkrat uporabil, ni dobra praksa?? in zakaj je to nevarno?
 

stein

Fizikalc
16. sep 2007
19.575
1
36
Nevarno je, če izbrišeš obstoječe vrstice *

Windows 7 recimo več nima localhost tam noter:
# localhost name resolution is handled within DNS itself.




* - oh se spomnim litanij na to temo iz starih časov Linux...
smile-1.gif