txn2 / kubefwd

Bulk port forwarding Kubernetes services for local development.
https://imti.co/kubernetes-port-forwarding/
Apache License 2.0
3.8k stars 205 forks source link

There are too many hostname aliases per line in a Windows hosts file #258

Open Flyfoxs opened 1 year ago

Flyfoxs commented 1 year ago

https://superuser.com/questions/932112/is-there-a-maximum-number-of-hostname-aliases-per-line-in-a-windows-hosts-file

Kubefwd generate too many aliases hostname in one line as below.

you will get this error when you run ping hadoop-hadoop-yarn-nm-2.nodemanager

Ping request could not find host hadoop-hadoop-yarn-nm-2.nodemanager. Please check the name and try again.

127.1.27.5 hadoop-hadoop-yarn-nm-2.nodemanager hadoop-hadoop-yarn-nm-2-nodemanager hadoop-hadoop-yarn-nm-2.nodemanager.backoffice hadoop-hadoop-yarn-nm-2-nodemanager-backoffice hadoop-hadoop-yarn-nm-2.nodemanager.backoffice.svc hadoop-hadoop-yarn-nm-2-nodemanager-backoffice-svc hadoop-hadoop-yarn-nm-2.nodemanager.backoffice.svc.cluster.local hadoop-hadoop-yarn-nm-2-nodemanager-backoffice-svc-cluster-local hadoop-hadoop-yarn-nm-2.nodemanager.backoffice.arn:aws:eks:us-east-1:882490700787:cluster/ubix-backoffice-cluster hadoop-hadoop-yarn-nm-2-nodemanager-backoffice-arn-aws-eks-us-east-1-882490700787-cluster-ubix-backoffice-cluster hadoop-hadoop-yarn-nm-2.nodemanager.backoffice.svc.arn:aws:eks:us-east-1:882490700787:cluster/ubix-backoffice-cluster hadoop-hadoop-yarn-nm-2-nodemanager-backoffice-svc-arn-aws-eks-us-east-1-882490700787-cluster-ubix-backoffice-cluster hadoop-hadoop-yarn-nm-2.nodemanager.backoffice.svc.cluster.arn:aws:eks:us-east-1:882490700787:cluster/ubix-backoffice-cluster hadoop-hadoop-yarn-nm-2-nodemanager-backoffice-svc-cluster-arn-aws-eks-us-east-1-882490700787-cluster-ubix-backoffice-cluster