DNS server assegnato dal router

Networking, configurazione della connessione, periferiche e condivisioni di rete.
Scrivi risposta
Avatar utente
SuperStep
Entusiasta Emergente
Entusiasta Emergente
Messaggi: 2037
Iscrizione: lunedì 19 dicembre 2011, 16:26
Desktop: Unity
Distribuzione: Ubuntu 16.04 LTS x86_64
Sesso: Maschile
Località: Somma Vesuviana (NA)

DNS server assegnato dal router

Messaggio da SuperStep »

salve,

ho questa configurazione

Codice: Seleziona tutto

192.168.0.1 router
192.168.0.100 server
192.168.0.101 pc1
...
192.168.0.106 pc6
192.168.0.200 server dns 
adesso vorrei che il server che rilascia indirizzi tramite DHCP rilasciasse come server DNS l'indirizzo 192.168.0.200
il router e' un NETGEAR WNR2200
e sulla pagina delle impostazioni ho settato come server DNS questi 3

Codice: Seleziona tutto

192.168.0.200
8.8.8.8
8.8.4.4
adesso se vado a vedere il contenuto del file /etc/resolv.conf quello ceh c'e' dentro e' questo:

Codice: Seleziona tutto

dal server
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
#     DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 192.168.0.1

su un pc in cui ho aggiunto il DNS a mano
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
#     DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 127.0.1.1
adesso se il DNS lo inserisco manualmente in un pc, posso accedere agli hostname aggiunti al DNS,
ma se provo da un qualsiasi altro pc no.

Come faccio a rilasciare il server DNS dal router?
ubuntu 16.04 LTS 64-bit - Memoria: 31,3 Gib - Processore: Intel Core i7-5960X CPU @ 3.00 GHz × 16 - Grafica: AMD Radeon HD 7800 Series - Disco: SSD 256 GB x 4 (RAID 01)
Juan18

Re: DNS server assegnato dal router

Messaggio da Juan18 »

Ciao non ci ho capito molto a dire il vero, ma forse devi impostare come gateway?
Avatar utente
SuperStep
Entusiasta Emergente
Entusiasta Emergente
Messaggi: 2037
Iscrizione: lunedì 19 dicembre 2011, 16:26
Desktop: Unity
Distribuzione: Ubuntu 16.04 LTS x86_64
Sesso: Maschile
Località: Somma Vesuviana (NA)

Re: DNS server assegnato dal router

Messaggio da SuperStep »

l'obbiettivo che voglio ottenere e che le macchine nella sottorete abbiano come dns primario 192.168.0.200, e vorrei che quest'assegnamento avvenisse in automatico tramite DHCP, come lo ottengo?
ubuntu 16.04 LTS 64-bit - Memoria: 31,3 Gib - Processore: Intel Core i7-5960X CPU @ 3.00 GHz × 16 - Grafica: AMD Radeon HD 7800 Series - Disco: SSD 256 GB x 4 (RAID 01)
Avatar utente
thece
Tenace Tecnocrate
Tenace Tecnocrate
Messaggi: 13186
Iscrizione: lunedì 23 aprile 2007, 14:16
Distribuzione: Debian 12 (Bookworm) - KDE

Re: DNS server assegnato dal router

Messaggio da thece »

:ciao: ,

è sufficiente che il DHCP server della tua rete, deve essercene uno solo, distribuisca l'indirizzo IP 192.168.0.200 come DNS primario
Avatar utente
SuperStep
Entusiasta Emergente
Entusiasta Emergente
Messaggi: 2037
Iscrizione: lunedì 19 dicembre 2011, 16:26
Desktop: Unity
Distribuzione: Ubuntu 16.04 LTS x86_64
Sesso: Maschile
Località: Somma Vesuviana (NA)

Re: DNS server assegnato dal router

Messaggio da SuperStep »

infatti, è quello che ho provato a fare,
https://imageshack.com/i/iql70q4Gp

ma se do

Codice: Seleziona tutto

step@Lisa:~$ nmcli dev list iface wlan0 | grep IP4
IP4.INDIRIZZO[1]:                       ip = 192.168.0.105/24, gw = 192.168.0.1
IP4.DNS[1]:                             192.168.0.1
posso vedere che il DNS preso è 192.168.0.1, ovvero l'indirizzo del gateway...

se provo ad impostare il DNS a mano, riesco ad accedere agli host della sottorete tramite nome host,
ma il server dhcp del router Netgear non rilascia i dns che vorrei...

sapresti dirmi perchè?
ubuntu 16.04 LTS 64-bit - Memoria: 31,3 Gib - Processore: Intel Core i7-5960X CPU @ 3.00 GHz × 16 - Grafica: AMD Radeon HD 7800 Series - Disco: SSD 256 GB x 4 (RAID 01)
Avatar utente
thece
Tenace Tecnocrate
Tenace Tecnocrate
Messaggi: 13186
Iscrizione: lunedì 23 aprile 2007, 14:16
Distribuzione: Debian 12 (Bookworm) - KDE

Re: DNS server assegnato dal router

Messaggio da thece »

SuperStep [url=http://forum.ubuntu-it.org/viewtopic.php?p=4625609#p4625609][img]http://forum.ubuntu-it.org/images/icons/icona-cita.gif[/img][/url] ha scritto: ...
ma il server dhcp del router Netgear non rilascia i dns che vorrei...
sapresti dirmi perchè?
Uhm ... no ... essendo un dispositivo domestico potrebbe essere che il grado di intervento sulla sua configurazione sia abbastanza limitato. Per impostazioni di fabbrica sembra che sia configurato per fornire sempre se stesso come DNS primario. Hai provato a vedere se esiste una qualche voce per disattivare il server DNS interno al router?

Una piccola nota sull'immagine che hai postato: a mio avviso, l'ordine dei DNS server forniti è sbagliato. Dovrebbe essere

DNS primario: 192.168.0.200
DNS secondario: 8.8.8.8
DNS terziario: 8.8.4.4

in questo modo il tuo DNS server è il primo ad essere contattato, e se configurato correttamente, può risolvere i nomi dei PC nella tua LAN. Quelli di Google sicuramente non lo faranno
Avatar utente
SuperStep
Entusiasta Emergente
Entusiasta Emergente
Messaggi: 2037
Iscrizione: lunedì 19 dicembre 2011, 16:26
Desktop: Unity
Distribuzione: Ubuntu 16.04 LTS x86_64
Sesso: Maschile
Località: Somma Vesuviana (NA)

Re: DNS server assegnato dal router

Messaggio da SuperStep »

si stavo giocando con le configurazioni, li avevo appena invertiti per vedere se cambiava qualcosa...
ma non funziona in nessuna permutazione di questi....

esiste un qualche modo per installare una distribuzione linux all'interno di questi affari?

se me lo configuro io con i software che scelgo io faccio prima, e poi odio configurare queste cose da interfacce grafiche, altrimenti, a che voce "più o meno" potrei trovare quello che dici?
ubuntu 16.04 LTS 64-bit - Memoria: 31,3 Gib - Processore: Intel Core i7-5960X CPU @ 3.00 GHz × 16 - Grafica: AMD Radeon HD 7800 Series - Disco: SSD 256 GB x 4 (RAID 01)
Avatar utente
thece
Tenace Tecnocrate
Tenace Tecnocrate
Messaggi: 13186
Iscrizione: lunedì 23 aprile 2007, 14:16
Distribuzione: Debian 12 (Bookworm) - KDE

Re: DNS server assegnato dal router

Messaggio da thece »

Una sola risposta per due domande: GIYF! Buona ricerca
Avatar utente
SuperStep
Entusiasta Emergente
Entusiasta Emergente
Messaggi: 2037
Iscrizione: lunedì 19 dicembre 2011, 16:26
Desktop: Unity
Distribuzione: Ubuntu 16.04 LTS x86_64
Sesso: Maschile
Località: Somma Vesuviana (NA)

Re: DNS server assegnato dal router

Messaggio da SuperStep »

la prossima volta compro un router cisco...
ubuntu 16.04 LTS 64-bit - Memoria: 31,3 Gib - Processore: Intel Core i7-5960X CPU @ 3.00 GHz × 16 - Grafica: AMD Radeon HD 7800 Series - Disco: SSD 256 GB x 4 (RAID 01)
Avatar utente
SuperStep
Entusiasta Emergente
Entusiasta Emergente
Messaggi: 2037
Iscrizione: lunedì 19 dicembre 2011, 16:26
Desktop: Unity
Distribuzione: Ubuntu 16.04 LTS x86_64
Sesso: Maschile
Località: Somma Vesuviana (NA)

Re: DNS server assegnato dal router

Messaggio da SuperStep »

in questa documentazione alla pagina 32
http://www.downloads.netgear.com/files/ ... LY2010.pdf

dice che
If you entered a DNS address when you configured the N300 wireless router,
restart your computer
quindi in teoria potrei inserire indirizzi DNS, ma perchè cavolo rilascia quello del gateway???

[EDIT]
allego anche questo che dice che si può fare
http://www.manualslib.com/manual/431210 ... ml?page=74
ubuntu 16.04 LTS 64-bit - Memoria: 31,3 Gib - Processore: Intel Core i7-5960X CPU @ 3.00 GHz × 16 - Grafica: AMD Radeon HD 7800 Series - Disco: SSD 256 GB x 4 (RAID 01)
Avatar utente
thece
Tenace Tecnocrate
Tenace Tecnocrate
Messaggi: 13186
Iscrizione: lunedì 23 aprile 2007, 14:16
Distribuzione: Debian 12 (Bookworm) - KDE

Re: DNS server assegnato dal router

Messaggio da thece »

Perchè è un dispositivo domestico che è pensato per l'utente (tipo) che attacca un cavo tra PC e router e tutto deve funzionare senza neanche aprire la pagina di configurazione del router ?

Stai tentando di fare una configurazione che per una LAN domestica è considerata "avanzata", più di tanto non puoi pretendere
Avatar utente
SuperStep
Entusiasta Emergente
Entusiasta Emergente
Messaggi: 2037
Iscrizione: lunedì 19 dicembre 2011, 16:26
Desktop: Unity
Distribuzione: Ubuntu 16.04 LTS x86_64
Sesso: Maschile
Località: Somma Vesuviana (NA)

Re: DNS server assegnato dal router

Messaggio da SuperStep »

si ma non è che sia chissà cosa rilasciare un name-server, soprattutto se glie lo metti nelle configurazioni e nel manuale utente...

credo che il prossimo router me lo costruirò da solo...
ubuntu 16.04 LTS 64-bit - Memoria: 31,3 Gib - Processore: Intel Core i7-5960X CPU @ 3.00 GHz × 16 - Grafica: AMD Radeon HD 7800 Series - Disco: SSD 256 GB x 4 (RAID 01)
Avatar utente
thece
Tenace Tecnocrate
Tenace Tecnocrate
Messaggi: 13186
Iscrizione: lunedì 23 aprile 2007, 14:16
Distribuzione: Debian 12 (Bookworm) - KDE

Re: DNS server assegnato dal router

Messaggio da thece »

SuperStep [url=http://forum.ubuntu-it.org/viewtopic.php?p=4625645#p4625645][img]http://forum.ubuntu-it.org/images/icons/icona-cita.gif[/img][/url] ha scritto: si ma non è che sia chissà cosa rilasciare un name-server, soprattutto se glie lo metti nelle configurazioni e nel manuale utente...
Ah ma lo fa, è che ne rilascia uno di troppo ...
Esagerato, ci sono già belli e fatti. Basta spendere un pò di più e rivolgersi al settore dei dispositivi professionali, forse anche per "small office"
Avatar utente
Alkatron
Entusiasta Emergente
Entusiasta Emergente
Messaggi: 1248
Iscrizione: giovedì 16 aprile 2009, 13:26
Distribuzione: debian jessie 64
Contatti:

Re: DNS server assegnato dal router

Messaggio da Alkatron »

Non sono molto esperto di dns, ma ho lo stesso router e facendo qualche prova ho visto che anche a me da sempre il router come dns..... pero poi andando ad interrogare il router lui essettivamente mi ritorna quelli impostati da me in questo caso gli open)

Codice: Seleziona tutto

kooliah@debian:~$ dig @172.16.0.1

; <<>> DiG 9.8.4-rpz2+rl005.12-P1 <<>> @172.16.0.1
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 59421
;; flags: qr rd ra; QUERY: 1, ANSWER: 13, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;.				IN	NS

;; ANSWER SECTION:
.			518396	IN	NS	d.root-servers.net.
.			518396	IN	NS	a.root-servers.net.
.			518396	IN	NS	f.root-servers.net.
.			518396	IN	NS	i.root-servers.net.
.			518396	IN	NS	j.root-servers.net.
.			518396	IN	NS	e.root-servers.net.
.			518396	IN	NS	c.root-servers.net.
.			518396	IN	NS	m.root-servers.net.
.			518396	IN	NS	l.root-servers.net.
.			518396	IN	NS	k.root-servers.net.
.			518396	IN	NS	b.root-servers.net.
.			518396	IN	NS	g.root-servers.net.
.			518396	IN	NS	h.root-servers.net.

;; Query time: 38 msec
;; SERVER: 172.16.0.1#53(172.16.0.1)
;; WHEN: Wed Jul 30 12:41:56 2014
;; MSG SIZE  rcvd: 228

kooliah@debian:~$ dig @208.67.222.222

; <<>> DiG 9.8.4-rpz2+rl005.12-P1 <<>> @208.67.222.222
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 20441
;; flags: qr rd ra; QUERY: 1, ANSWER: 13, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;.				IN	NS

;; ANSWER SECTION:
.			518294	IN	NS	d.root-servers.net.
.			518294	IN	NS	a.root-servers.net.
.			518294	IN	NS	f.root-servers.net.
.			518294	IN	NS	i.root-servers.net.
.			518294	IN	NS	j.root-servers.net.
.			518294	IN	NS	e.root-servers.net.
.			518294	IN	NS	c.root-servers.net.
.			518294	IN	NS	m.root-servers.net.
.			518294	IN	NS	l.root-servers.net.
.			518294	IN	NS	k.root-servers.net.
.			518294	IN	NS	b.root-servers.net.
.			518294	IN	NS	g.root-servers.net.
.			518294	IN	NS	h.root-servers.net.

;; Query time: 39 msec
;; SERVER: 208.67.222.222#53(208.67.222.222)
;; WHEN: Wed Jul 30 12:43:39 2014
;; MSG SIZE  rcvd: 228
Non so se ti puo aiutare ciao
Scrivi risposta

Ritorna a “Connessione e configurazione delle reti”

Chi c’è in linea

Visualizzano questa sezione: 0 utenti iscritti e 3 ospiti