F5F Stay Refreshed Software Operating Systems The file C:\Windows\System32\drivers\etc\hosts isn't working and is being ignored?

The file C:\Windows\System32\drivers\etc\hosts isn't working and is being ignored?

The file C:\Windows\System32\drivers\etc\hosts isn't working and is being ignored?

Pages (3): Previous 1 2 3 Next
B
BreannaJ
Member
59
10-06-2016, 01:55 PM
#11
I didn't mention your DNS configuration isn't functioning. But the DNS servers people typically use are public ones that handle internet domain names, not those for LAN devices or computers. If your hosts file isn't working, you'll need a local DNS solution to resolve this.
B
BreannaJ
10-06-2016, 01:55 PM #11

I didn't mention your DNS configuration isn't functioning. But the DNS servers people typically use are public ones that handle internet domain names, not those for LAN devices or computers. If your hosts file isn't working, you'll need a local DNS solution to resolve this.

B
BubbaNitro
Member
160
10-06-2016, 02:52 PM
#12
This is what the hosts file is for. Local aliases without the overhead of a custom DNS setup. There is no need for local DNS if I can give an alias to dotted=decimal addresses. It is the very purpose of the hosts file.
B
BubbaNitro
10-06-2016, 02:52 PM #12

This is what the hosts file is for. Local aliases without the overhead of a custom DNS setup. There is no need for local DNS if I can give an alias to dotted=decimal addresses. It is the very purpose of the hosts file.

L
lizzard89
Senior Member
707
10-17-2016, 07:55 AM
#13
Sure, I understand the role of the hosts file and its function. If it operates properly, you won't have to rely on a DNS. You're confident about the correct path with double slashes. Please let other members assist.
L
lizzard89
10-17-2016, 07:55 AM #13

Sure, I understand the role of the hosts file and its function. If it operates properly, you won't have to rely on a DNS. You're confident about the correct path with double slashes. Please let other members assist.

A
angelcake_11
Senior Member
540
10-17-2016, 08:14 AM
#14
You may look through this discussion for additional suggestions regarding the problem.
It covers topics such as virus scanners interfering and incorrect encoding formats. There are many minor details to consider.
A
angelcake_11
10-17-2016, 08:14 AM #14

You may look through this discussion for additional suggestions regarding the problem.
It covers topics such as virus scanners interfering and incorrect encoding formats. There are many minor details to consider.

N
Nynhow
Member
199
10-17-2016, 11:27 AM
#15
I’m not entirely sure I grasp the requirement fully.
Please note the reference to CNAME.
Yet, aliases are possible.
You can add an Alias canonical name (CNAME) record in DNS for your web server within a zone on your domain controller. With CNAME records, you can point multiple names to a single host, which simplifies tasks like running both FTP and web services on the same machine.
If aliases are needed, PowerShell can handle this.
This isn’t something I’ve dealt with before (full disclosure).
But a few links might be useful:
- https://techcommunity.microsoft.com...-aliases-in-place-of-dns-cname-records/259064
- https://www.commandinline.com/cheat-shee...e-dnsname/
Additionally, an older guide appears relevant:
https://superuser.com/questions/319566/h...in-windows
And here’s another reference:
https://learn.microsoft.com/en-us/window...eate-alias
N
Nynhow
10-17-2016, 11:27 AM #15

I’m not entirely sure I grasp the requirement fully.
Please note the reference to CNAME.
Yet, aliases are possible.
You can add an Alias canonical name (CNAME) record in DNS for your web server within a zone on your domain controller. With CNAME records, you can point multiple names to a single host, which simplifies tasks like running both FTP and web services on the same machine.
If aliases are needed, PowerShell can handle this.
This isn’t something I’ve dealt with before (full disclosure).
But a few links might be useful:
- https://techcommunity.microsoft.com...-aliases-in-place-of-dns-cname-records/259064
- https://www.commandinline.com/cheat-shee...e-dnsname/
Additionally, an older guide appears relevant:
https://superuser.com/questions/319566/h...in-windows
And here’s another reference:
https://learn.microsoft.com/en-us/window...eate-alias

M
Moistified
Member
73
10-17-2016, 01:27 PM
#16
The information you shared initially refers to a business setting involving a Windows server domain controller with Active Directory and its associated DNS. It's even more intricate.
M
Moistified
10-17-2016, 01:27 PM #16

The information you shared initially refers to a business setting involving a Windows server domain controller with Active Directory and its associated DNS. It's even more intricate.

D
100
10-17-2016, 10:02 PM
#17
Here is a revised version of your text:

It seems the concept of "beginning" in relation to using PowerShell commands is accurate. Thank you.
I conducted some further research and discovered additional resources. For instance:
https://www.bing.com/search?q=How+t...ef...CD&pc=U711
The page explains that assigning a network alias in PowerShell can be done using the New-NetIPAddress cmdlet to set an IP address and alias for a network adapter. However, if you mean setting a "network alias" such as a hostname or DNS alias, it usually involves editing the hosts file or adjusting DNS configurations.
Additionally:
https://learn.microsoft.com/en-us/powers...rshell-7.5
This resource clarifies that DNS functions properly, but creating custom aliases for devices like NAS and printers can run into issues.
If the file is intact, permissions are correct, syntax is right, and the DNS cache isn’t the issue, then what adjustment would be necessary to activate the "C:\\Windows\\System32\\drivers\\etc\\hosts" file?
It generally works well, except when trying to add aliases for local network equipment.
I’m not a fan of questioning requirements outright, but I was curious about the necessity of aliases in a non-business setting. They can be useful during transitions and changes, but they might become confusing due to frequent updates and inconsistencies.
It’s better to assign a static IP address to the named NAS or printer or other devices—keep it straightforward. Use the device(s) as needed.
Overall, this is somewhat outside my usual comfort zone since I haven’t extensively worked with PowerShell or aliases as required.
Nevertheless, PowerShell can be quite unexpected. Others might find a way to make it work. The links could provide further insights, command usage, syntax examples, and practical tips.
For fun, you could try searching "Need an alias name for my network storage" and filter results from the past year.
D
DragonBlack246
10-17-2016, 10:02 PM #17

Here is a revised version of your text:

It seems the concept of "beginning" in relation to using PowerShell commands is accurate. Thank you.
I conducted some further research and discovered additional resources. For instance:
https://www.bing.com/search?q=How+t...ef...CD&pc=U711
The page explains that assigning a network alias in PowerShell can be done using the New-NetIPAddress cmdlet to set an IP address and alias for a network adapter. However, if you mean setting a "network alias" such as a hostname or DNS alias, it usually involves editing the hosts file or adjusting DNS configurations.
Additionally:
https://learn.microsoft.com/en-us/powers...rshell-7.5
This resource clarifies that DNS functions properly, but creating custom aliases for devices like NAS and printers can run into issues.
If the file is intact, permissions are correct, syntax is right, and the DNS cache isn’t the issue, then what adjustment would be necessary to activate the "C:\\Windows\\System32\\drivers\\etc\\hosts" file?
It generally works well, except when trying to add aliases for local network equipment.
I’m not a fan of questioning requirements outright, but I was curious about the necessity of aliases in a non-business setting. They can be useful during transitions and changes, but they might become confusing due to frequent updates and inconsistencies.
It’s better to assign a static IP address to the named NAS or printer or other devices—keep it straightforward. Use the device(s) as needed.
Overall, this is somewhat outside my usual comfort zone since I haven’t extensively worked with PowerShell or aliases as required.
Nevertheless, PowerShell can be quite unexpected. Others might find a way to make it work. The links could provide further insights, command usage, syntax examples, and practical tips.
For fun, you could try searching "Need an alias name for my network storage" and filter results from the past year.

S
220
10-17-2016, 11:01 PM
#18
The alias referred to applies solely to PowerShell commands, and has no relation to computer name aliases at all. It functions as a convenient shortcut for PowerShell cmdlets.
S
SmileEnchanter
10-17-2016, 11:01 PM #18

The alias referred to applies solely to PowerShell commands, and has no relation to computer name aliases at all. It functions as a convenient shortcut for PowerShell cmdlets.

C
creepy_connor
Member
147
10-19-2016, 04:05 AM
#19
Check the details in your hosts file.
C
creepy_connor
10-19-2016, 04:05 AM #19

Check the details in your hosts file.

B
Blu3forest
Member
85
10-19-2016, 12:16 PM
#20
Should have included this reference:
https://www.bing.com/search?q=power...ef...14&pc=U711
From the source:
"In PowerShell, a "network alias" generally means assigning an alternative name to a computer or network device, usually for ease of use. Although PowerShell doesn't offer a built-in "network alias" command, you can replicate this behavior through DNS settings, modifying the hosts file, or writing PowerShell scripts to handle network configurations."
Here are three methods to manage network aliases in PowerShell:
B
Blu3forest
10-19-2016, 12:16 PM #20

Should have included this reference:
https://www.bing.com/search?q=power...ef...14&pc=U711
From the source:
"In PowerShell, a "network alias" generally means assigning an alternative name to a computer or network device, usually for ease of use. Although PowerShell doesn't offer a built-in "network alias" command, you can replicate this behavior through DNS settings, modifying the hosts file, or writing PowerShell scripts to handle network configurations."
Here are three methods to manage network aliases in PowerShell:

Pages (3): Previous 1 2 3 Next